mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update unit test
This commit is contained in:
parent
b0adc23279
commit
2d32168e05
@ -43,16 +43,16 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
IsRemind = saveDiary.IsRemind,
|
IsRemind = saveDiary.IsRemind,
|
||||||
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
||||||
UValidate.Check(sql.Key, @"UPDATE ""diary"" SET
|
UValidate.Check(sql.Key.Replace(" ",""), @"UPDATE ""diary"" SET
|
||||||
""isremind"" = @Const0 WHERE ( ""id"" = @ID1 )", "Updateable");
|
""isremind"" = @Const0 WHERE ( ""id"" = @ID1 )".Replace(" ", ""), "Updateable");
|
||||||
|
|
||||||
|
|
||||||
sql = Db.Updateable<UnitDiary>().SetColumns(it => new UnitDiary()
|
sql = Db.Updateable<UnitDiary>().SetColumns(it => new UnitDiary()
|
||||||
{
|
{
|
||||||
TypeID = saveDiary.TypeID,
|
TypeID = saveDiary.TypeID,
|
||||||
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
}).Where(it => it.ID == saveDiary.ID).ToSql();
|
||||||
UValidate.Check(sql.Key, @"UPDATE ""diary"" SET
|
UValidate.Check(sql.Key.Replace(" ", ""), @"UPDATE ""diary"" SET
|
||||||
""typeid"" = @Const0 WHERE ( ""id"" = @ID1 )", "Updateable");
|
""typeid"" = @Const0 WHERE ( ""id"" = @ID1 )".Replace(" ", ""), "Updateable");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user