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