Delete In Support Enumable

This commit is contained in:
sunkaixuan
2018-10-16 08:20:45 +08:00
parent 7b398f5050
commit 0abccebf83
3 changed files with 15 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ namespace OrmTest.Demo
//by primary key array
var t4 = db.Deleteable<Student>().In(new int[] { 1, 2 }).ExecuteCommand();
var t41 = db.Deleteable<Student>().In(new int[] { 1, 2 }.Select(it=>it)).ExecuteCommand();
var t42 = db.Deleteable<Student>().In(new int[] { 1, 2 }.AsEnumerable()).ExecuteCommand();
//by expression id>1 and id==1
var t5 = db.Deleteable<Student>().Where(it => it.Id > 1).Where(it => it.Id == 1).ExecuteCommand();