This commit is contained in:
sunkaixuan
2017-05-14 12:59:15 +08:00
parent 0260337376
commit fefa1d6ea1
7 changed files with 95 additions and 5 deletions

View File

@@ -25,9 +25,9 @@ namespace OrmTest
//use lock
var s2 = db.Deleteable<Student>().With(SqlWith.RowLock).ToSql();
//by primary key
var s3 = db.Deleteable<Student>().Where(1).ToSql();
var s3 = db.Deleteable<Student>().In(1).ToSql();
//by primary key array
var s4 = db.Deleteable<Student>().Where(new int[] { 1,2}).ToSql();
var s4 = db.Deleteable<Student>().In(new int[] { 1,2}).ToSql();
//by expression
var s5 = db.Deleteable<Student>().Where(it=>it.Id==1).ToSql();
}