mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update exp to sql
This commit is contained in:
parent
5472b5d8bc
commit
d9e847b7c7
@ -144,6 +144,10 @@ namespace SqlSugar
|
||||
var leftString = GetNewExpressionValue(expression.Left);
|
||||
var RightString = GetNewExpressionValue(expression.Right);
|
||||
var joinString = this.Context.DbMehtods.MergeString(leftString, RightString);
|
||||
if (this.Context is KdbndpExpressionContext&&this.Context?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel==DbType.SqlServer)
|
||||
{
|
||||
joinString = new SqlServerMethod().MergeString(leftString, RightString);
|
||||
}
|
||||
if (this.Context.Result.Contains(ExpressionConst.FormatSymbol))
|
||||
{
|
||||
base.Context.Result.Replace("{0}", $" {joinString} ");
|
||||
|
Loading…
Reference in New Issue
Block a user