mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Add demo
This commit is contained in:
@@ -38,6 +38,9 @@ namespace MongoDbTest
|
|||||||
db.Deleteable<Student>().In(id2).ExecuteCommandAsync().GetAwaiter().GetResult();
|
db.Deleteable<Student>().In(id2).ExecuteCommandAsync().GetAwaiter().GetResult();
|
||||||
var count6 = db.Queryable<Student>().Count();
|
var count6 = db.Queryable<Student>().Count();
|
||||||
if (count6 != (count5 - 1)) Cases.ThrowUnitError();
|
if (count6 != (count5 - 1)) Cases.ThrowUnitError();
|
||||||
|
var id3=db.Queryable<Student>().First().Id;
|
||||||
|
var rows4=db.Deleteable<Student>().AS("UnitStudent1ssdds3z1").In(id3).ExecuteCommandAsync().GetAwaiter().GetResult();
|
||||||
|
if(rows4!=1) Cases.ThrowUnitError();
|
||||||
}
|
}
|
||||||
[SqlSugar.SugarTable("UnitStudent1ssdds3z1")]
|
[SqlSugar.SugarTable("UnitStudent1ssdds3z1")]
|
||||||
public class Student : MongoDbBase
|
public class Student : MongoDbBase
|
||||||
|
Reference in New Issue
Block a user