Add user test case

This commit is contained in:
sunkaixuan 2024-02-08 15:51:28 +08:00
parent 1fe02db26b
commit 1966680b38

View File

@ -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