mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Synchronization code
This commit is contained in:
@@ -75,11 +75,11 @@ namespace SqlSugar
|
|||||||
return methodValue != null && methodValue.ToString().Contains("THEN true ELSE false END");
|
return methodValue != null && methodValue.ToString().Contains("THEN true ELSE false END");
|
||||||
}
|
}
|
||||||
private object packIfElse(object methodValue)
|
private object packIfElse(object methodValue)
|
||||||
{
|
{
|
||||||
methodValue = this.Context.DbMehtods.CaseWhen(new List<KeyValuePair<string, string>>() {
|
methodValue = this.Context.DbMehtods.CaseWhen(new List<KeyValuePair<string, string>>() {
|
||||||
new KeyValuePair<string, string>("IF",methodValue.ObjToString()),
|
new KeyValuePair<string, string>("IF",methodValue.ObjToString()),
|
||||||
new KeyValuePair<string, string>("Return","1"),
|
new KeyValuePair<string, string>("Return", this.Context.DbMehtods.TrueValue()),
|
||||||
new KeyValuePair<string, string>("End","0")
|
new KeyValuePair<string, string>("End", this.Context.DbMehtods.FalseValue())
|
||||||
});
|
});
|
||||||
return methodValue;
|
return methodValue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user