mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-20 00:44:19 +08:00
Add demo
This commit is contained in:
parent
bd91c1d63b
commit
8fe3cbb328
@ -23,7 +23,10 @@ namespace MongoDbTest
|
||||
}).ExecuteCommand();
|
||||
var data = db.Queryable<Student>().First();
|
||||
var list=db.Queryable<Student>().Where(s => s.Book.SchoolId == data.Book.SchoolId).ToList();
|
||||
if (list.Any() == false) Cases.ThrowUnitError();
|
||||
if (list.Any() == false) Cases.ThrowUnitError();
|
||||
var ids = new List<string>() { data.Book.SchoolId};
|
||||
var list2 = db.Queryable<Student>().Where(s => ids.Contains( s.Book.SchoolId ) ).ToList();
|
||||
if (list2.Any() == false) Cases.ThrowUnitError();
|
||||
}
|
||||
|
||||
[SqlSugar.SugarTable("UnitStudentdddd1")]
|
||||
|
Loading…
Reference in New Issue
Block a user