mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update demo
This commit is contained in:
@@ -43,16 +43,16 @@ namespace OrmTest
|
||||
{
|
||||
IsRemind = saveDiary.IsRemind,
|
||||
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
||||
UValidate.Check(sql.Key, @"UPDATE [Diary] SET
|
||||
[IsRemind] = @Const0 WHERE ( [ID] = @ID1 )", "Updateable");
|
||||
UValidate.Check(sql.Key, @"UPDATE ""DIARY"" SET
|
||||
""ISREMIND"" = @Const0 WHERE ( ""ID"" = @ID1 )", "Updateable");
|
||||
|
||||
|
||||
sql = Db.Updateable<UnitDiary>().SetColumns(it => new UnitDiary()
|
||||
{
|
||||
TypeID = saveDiary.TypeID,
|
||||
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
||||
UValidate.Check(sql.Key, @"UPDATE [Diary] SET
|
||||
[TypeID] = @Const0 WHERE ( [ID] = @ID1 )", "Updateable");
|
||||
UValidate.Check(sql.Key, @"UPDATE ""DIARY"" SET
|
||||
""TYPEID"" = @Const0 WHERE ( ""ID"" = @ID1 )", "Updateable");
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user