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