mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update mongodb
This commit is contained in:
parent
bca4a2b618
commit
d3d0315dd5
@ -157,11 +157,13 @@ namespace MongoDbTest
|
|||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
var list17 = db.Queryable<Student>()
|
var list17 = db.Queryable<Student>()
|
||||||
|
.Where(it=>SqlFunc.Length(it.Name)>1)
|
||||||
.Select(it => new
|
.Select(it => new
|
||||||
{
|
{
|
||||||
name2=it.Name,
|
name2=it.Name,
|
||||||
name = it.Name.Substring(0,1),
|
name = it.Name.Substring(0,1),
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
if(list17.First().name2!="a2"||list17.First().name.Substring(0,1)!= list17.First().name) Cases.ThrowUnitError();
|
||||||
}
|
}
|
||||||
[SqlSugar.SugarTable("UnitStudent1231sds3z1")]
|
[SqlSugar.SugarTable("UnitStudent1231sds3z1")]
|
||||||
public class Student : MongoDbBase
|
public class Student : MongoDbBase
|
||||||
|
Loading…
Reference in New Issue
Block a user