Browse Source

Update unit test

master
sunkaixuan 1 year ago
parent
commit
5cfe9bb33b
  1. 8
      Src/Asp.NetCore2/SqliteTest/UnitTest/Updateable.cs

8
Src/Asp.NetCore2/SqliteTest/UnitTest/Updateable.cs

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

Loading…
Cancel
Save