mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add unit test
This commit is contained in:
parent
09d6ab1d17
commit
306625ca56
@ -355,8 +355,24 @@ namespace OrmTest
|
||||
.Where(y => y.SchoolA.School_Name == "")
|
||||
.Select(y=>y.Name)=="a")
|
||||
.ToList();
|
||||
|
||||
var list9 = db.Queryable<SchoolA>()
|
||||
.LeftJoin<StudentA>((x, y) => (x.SchoolId == y.SchoolId))
|
||||
.LeftJoin<BookA>((x, y, z) => y.SchoolId == y.SchoolId)
|
||||
.Select((x, y, z) => new UnitView01()
|
||||
{
|
||||
Name = x.School_Name,
|
||||
}, true).ToList();
|
||||
}
|
||||
|
||||
public class UnitView01
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string SchoolName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int BookId { get; set; }
|
||||
public int StudentId { get; set; }
|
||||
}
|
||||
public class UnitA001
|
||||
{
|
||||
public int id { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user