Update unit test

This commit is contained in:
sunkaixuan 2023-08-02 16:49:56 +08:00
parent cc128a929f
commit ca21f6ddb9

View File

@ -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.Replace(" ",""), @"UPDATE `Diary` SET
`IsRemind` = @Const0 WHERE ( `ID` = @ID1 )".Replace(" ", ""), "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.Replace(" ", ""), @"UPDATE `Diary` SET
`TypeID` = @Const0 WHERE ( `ID` = @ID1 )".Replace(" ", ""), "Updateable");
}
}