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
cc128a929f
commit
ca21f6ddb9
@ -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