mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update unit test
This commit is contained in:
parent
db14dd847a
commit
cfa4c6e40b
@ -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");
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user