Update mongodb

This commit is contained in:
sunkaixuan
2025-06-21 13:58:14 +08:00
parent ccd96f4500
commit a57c6057f2
2 changed files with 12 additions and 0 deletions

View File

@@ -189,6 +189,10 @@ namespace MongoDbTest
var list22= db.Queryable<Student>()
.Select(it=>it.Name).ToList();
if (list22.First() != "a") Cases.ThrowUnitError();
var list23 = db.Queryable<Student>()
.Select(it => it.Name.ToUpper()).ToList();
if (list23.First() != "A") Cases.ThrowUnitError();
}
[SqlSugar.SugarTable("UnitStudent1231sds3z1")]
public class Student : MongoDbBase