mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +08:00
Update mongodb
This commit is contained in:
@@ -79,7 +79,16 @@ namespace MongoDbTest
|
||||
studentName = s.Name,
|
||||
schoolName = sc.Name
|
||||
}).ToList();
|
||||
if (dt4.Last().studentName != "李四"|| dt4.Last().schoolName != "复旦大学") Cases.ThrowUnitError();
|
||||
if (dt4.Count==2&&dt4.Last().studentName != "李四"|| dt4.Last().schoolName != "复旦大学") Cases.ThrowUnitError();
|
||||
|
||||
// var dt6= db.Queryable<Student>()
|
||||
//.LeftJoin<School>((s, sc) => s.SchoolId == sc.Id&&sc.Name== "复旦大学")
|
||||
//.Select((s, sc) => new
|
||||
//{
|
||||
// studentName = s.Name,
|
||||
// schoolName = sc.Name
|
||||
//}).ToList();
|
||||
//if (dt6.Count==1&& dt6.Last().studentName != "李四" || dt6.Last().schoolName != "复旦大学") Cases.ThrowUnitError();
|
||||
}
|
||||
[SqlSugar.SugarTable("UnitStudentdu2s31")]
|
||||
public class Student : MongoDbBase
|
||||
|
Reference in New Issue
Block a user