Add IUpdateable<T> Where(string whereSql,object parameters=null)

This commit is contained in:
sunkaixuan
2018-04-21 11:24:23 +08:00
parent 177d4fd52b
commit 5c27d8babb
5 changed files with 22 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ namespace OrmTest.Demo
//Column is null no update
db.Updateable(updateObj).Where(true).ExecuteCommand();
//sql
db.Updateable(updateObj).Where("id=@x",new { x="1"}).ExecuteCommand();
var t12 = db.Updateable<School>().AS("Student").UpdateColumns(it => new School() { Name = "jack" }).Where(it => it.Id == 1).ExecuteCommandAsync();
t12.Wait();