mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
a41383e0a2
commit
b5b94d3935
@ -33,14 +33,18 @@ namespace OrmTest
|
|||||||
var list = db.Queryable<UnitAddress011>().Includes(x => x.Persons).Includes(x=>x.City).ToList();
|
var list = db.Queryable<UnitAddress011>().Includes(x => x.Persons).Includes(x=>x.City).ToList();
|
||||||
|
|
||||||
|
|
||||||
var list2 = db.Queryable<UnitAddress011>()
|
var list2 = db.Queryable<UnitAddress011>()
|
||||||
.Includes(x => x.Persons)
|
.IF(false, it => {
|
||||||
.IncludeLeftJoin(x => x.City)
|
|
||||||
.Select(it=>new {
|
|
||||||
City=new {it.City.Name,it.City.Id },
|
|
||||||
Persons = it.Persons
|
|
||||||
}).ToList();
|
|
||||||
|
|
||||||
|
it.Includes(x => x.Persons);
|
||||||
|
})
|
||||||
|
.ToList();
|
||||||
|
var list22 = db.Queryable<UnitAddress011>()
|
||||||
|
.IF(true, it => {
|
||||||
|
|
||||||
|
it.Includes(x => x.Persons);
|
||||||
|
})
|
||||||
|
.ToList();
|
||||||
var list3 = db.Queryable<UnitAddress011>()
|
var list3 = db.Queryable<UnitAddress011>()
|
||||||
.Includes(x => x.Persons)
|
.Includes(x => x.Persons)
|
||||||
.Includes(x => x.City)
|
.Includes(x => x.City)
|
||||||
|
Loading…
Reference in New Issue
Block a user