mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
0fe87ea0b8
commit
105e9e0b5a
@ -28,6 +28,14 @@ namespace OrmTest
|
|||||||
Name= "b",
|
Name= "b",
|
||||||
SchoolId=1,
|
SchoolId=1,
|
||||||
}).ExecuteCommand();
|
}).ExecuteCommand();
|
||||||
|
NewUnitTest.Db.Queryable<School>()
|
||||||
|
.IncludeLeftJoin(x => x.Grades)
|
||||||
|
.GroupBy(x => x.Grades.Id)
|
||||||
|
.Select(x => new
|
||||||
|
{
|
||||||
|
name = x.Grades.Id
|
||||||
|
})
|
||||||
|
.ToList();
|
||||||
Db.DeleteNav<School>(s => s.Id.Equals(1))
|
Db.DeleteNav<School>(s => s.Id.Equals(1))
|
||||||
.Include(s => s.Grades).ExecuteCommandAsync().GetAwaiter().GetResult();
|
.Include(s => s.Grades).ExecuteCommandAsync().GetAwaiter().GetResult();
|
||||||
//Console.ReadLine();
|
//Console.ReadLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user