mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Add demo
This commit is contained in:
@@ -97,7 +97,13 @@ namespace MongoDbTest
|
||||
var list77 = db.Queryable<Student>()
|
||||
.Where(it=>"ac"== it.Name.Substring(1, it.SchoolId))
|
||||
.Select(it => new { it.SchoolId, name =it.Name.Substring(1, it.SchoolId) }).ToList();
|
||||
if (list77.First().name != "ac") Cases.ThrowUnitError();
|
||||
if (list77.First().name != "ac") Cases.ThrowUnitError();
|
||||
|
||||
var name = "acbd"; //
|
||||
var list78 = db.Queryable<Student>()
|
||||
.Where(it => "ac" == name.Substring(0, it.SchoolId))
|
||||
.ToList();
|
||||
if (!list78.Any(it => "ac" == name.Substring(0, it.SchoolId))) Cases.ThrowUnitError();
|
||||
}
|
||||
|
||||
private static void ValidateStudentData(SqlSugar.SqlSugarClient db)
|
||||
|
Reference in New Issue
Block a user