mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add demo
This commit is contained in:
parent
b1352472e0
commit
f10a403c06
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user