mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 10:08:11 +08:00
Add user test case
This commit is contained in:
parent
1fe02db26b
commit
1966680b38
@ -21,7 +21,8 @@ namespace OrmTest
|
|||||||
Street = "a",
|
Street = "a",
|
||||||
Id = id
|
Id = id
|
||||||
}).ExecuteCommand();
|
}).ExecuteCommand();
|
||||||
db.Insertable(new UnitPerson011() {
|
db.Insertable(new UnitPerson011()
|
||||||
|
{
|
||||||
AddressId = id,
|
AddressId = id,
|
||||||
AddressId2 = id,
|
AddressId2 = id,
|
||||||
Id = id,
|
Id = id,
|
||||||
@ -32,6 +33,11 @@ namespace OrmTest
|
|||||||
.Includes(x => x.adds)
|
.Includes(x => x.adds)
|
||||||
.Includes(x => x.adds2).ToList();
|
.Includes(x => x.adds2).ToList();
|
||||||
|
|
||||||
|
var list3 = db.Queryable<UnitAddress011>()
|
||||||
|
.Includes(it=>it.Persons)
|
||||||
|
.Where(it => it.Persons.Any())
|
||||||
|
.ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
[SqlSugar.SugarTable("Unitsdd0x1ddx1")]
|
[SqlSugar.SugarTable("Unitsdd0x1ddx1")]
|
||||||
public class UnitPerson011
|
public class UnitPerson011
|
||||||
|
Loading…
Reference in New Issue
Block a user