Add IUpdateable<T> Where(string fieldName,string conditionalType, object fieldValue)

This commit is contained in:
sunkaixuan
2018-04-21 13:51:38 +08:00
parent 5c27d8babb
commit 98ba051d16
3 changed files with 18 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ namespace OrmTest.Demo
//sql
db.Updateable(updateObj).Where("id=@x",new { x="1"}).ExecuteCommand();
db.Updateable(updateObj).Where("id","=",1).ExecuteCommand();
var t12 = db.Updateable<School>().AS("Student").UpdateColumns(it => new School() { Name = "jack" }).Where(it => it.Id == 1).ExecuteCommandAsync();
t12.Wait();