mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update mongodb
This commit is contained in:
@@ -18,6 +18,10 @@ namespace MongoDbTest
|
||||
var data1=db.Queryable<Student>().ToList();
|
||||
if (data1.First().Book.Count != 1) Cases.ThrowUnitError();
|
||||
if (data1.First().Book.First().Price != 21) Cases.ThrowUnitError();
|
||||
data1.First().Book.First().Price = 100;
|
||||
db.Updateable(data1).ExecuteCommand();
|
||||
var data2 = db.Queryable<Student>().ToList();
|
||||
if (data2.First().Book.First().Price != 100) Cases.ThrowUnitError();
|
||||
}
|
||||
|
||||
[SqlSugar.SugarTable("UnitStudentdfsds3zzz1")]
|
||||
|
Reference in New Issue
Block a user