mirror of
				https://gitee.com/dotnetchina/SqlSugar.git
				synced 2025-10-31 16:36:50 +08:00 
			
		
		
		
	Add demo
This commit is contained in:
		| @@ -2,6 +2,7 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Linq.Dynamic.Core; | ||||
| using System.Net.Http.Headers; | ||||
| using System.Text; | ||||
|  | ||||
| @@ -36,6 +37,16 @@ namespace OrmTest | ||||
|                 .IncludeByNameString("City").ExecuteCommand(); | ||||
|  | ||||
|  | ||||
|             StaticConfig.DynamicExpressionParserType = typeof(DynamicExpressionParser); | ||||
|             var dynamicList=db.Queryable<UnitAddress011>() | ||||
|                 .IncludesAllFirstLayer() | ||||
|                 .Select("it", new List<string> | ||||
|                 { | ||||
|                     " new (it.City.Name,it.City.AddressId) as City ", | ||||
|                     " it.Persons.Select(y=>y.Name) as  Persons " | ||||
|                 }).ToList(); | ||||
|  | ||||
|  | ||||
|             var list = db.Queryable<UnitAddress011>().Includes(x => x.Persons).Includes(x => x.City).ToList(); | ||||
|  | ||||
|             var list2 = db.Queryable<UnitAddress011>().Includes(x => x.Persons | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunkaixuan
					sunkaixuan