This commit is contained in:
sunkaixuan 2022-06-29 13:54:01 +08:00
parent b1352472e0
commit f10a403c06

View File

@ -105,16 +105,6 @@ namespace OrmTest
.ToList();
//功能开发中
//db.InsertNav(list3)
//.ThenInclude(z1 => z1.SchoolA)
//.ThenInclude(z1 => z1.RoomList)
//.AsNav()
//.ThenInclude(z1 => z1.Books);
var list3_1 = db.Queryable<StudentA>()
.Includes(x => x.Books.MappingField(z=>z.Names,()=>x.Name).ToList())
.ToList();
@ -204,6 +194,23 @@ namespace OrmTest
db.Deleteable<StudentA>().Where(x => x.SchoolA.School_Name=="a").ExecuteCommand();
db.Updateable<StudentA>()
.SetColumns(it=>it.Name=="a").Where(x => x.SchoolA.School_Name == "a").ExecuteCommand();
var list6=db.Queryable<StudentA>()
.Includes(x => x.SchoolA, x => x.RoomList)
.Includes(x => x.Books).ToList();
db.DbMaintenance.TruncateTable<StudentA, RoomA, BookA>();
//开发中
//db.InsertNav(list6)
//.ThenInclude(z1 => z1.SchoolA)
//.ThenInclude(z1 => z1.RoomList)
//.AsNav()
//.ThenInclude(z1 => z1.Books);
}
public class UnitA001