Update unit test

This commit is contained in:
sunkaixuan 2023-07-23 19:56:38 +08:00
parent b0adc23279
commit 2d32168e05

View File

@ -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");
} }
} }