Update Columns BUG

This commit is contained in:
sunkaixuan
2017-12-05 13:30:52 +08:00
parent c5fd426529
commit e20aa8cbb8
2 changed files with 3 additions and 2 deletions

View File

@@ -67,7 +67,8 @@ namespace OrmTest.Demo
var count = db.Updateable<Student>().UpdateColumns(it => it.SchoolId == it.SchoolId).Where(it => it.Id == it.Id+1).ExecuteCommand();
//update one columns
var count2 = db.Updateable<Student>().UpdateColumns(it => it.SchoolId == it.SchoolId+1).Where(it => it.Id == it.Id + 1).ExecuteCommand();
}
}
}