Update exp to sql

This commit is contained in:
sunkaixuan 2022-12-02 13:35:58 +08:00
parent 92e84191d1
commit 6a0dc85930
2 changed files with 3 additions and 2 deletions

View File

@ -141,7 +141,7 @@ namespace SqlSugar
}
this.Context.Parameters.Add(p);
}
else if (parameter?.BaseParameter?.CommonTempData.ObjToString() == "IsJon=true")
else if (parameter?.BaseParameter?.CommonTempData.ObjToString() == "IsJson=true")
{
this.Context.Parameters.Add(new SugarParameter(appendValue, new SerializeService().SerializeObject(value)) { IsJson=true});
}

View File

@ -46,8 +46,9 @@ namespace SqlSugar
}
else if (IsUpdateJson(parameter,expression, operatorValue))
{
parameter.CommonTempData = "IsJon=true";
parameter.CommonTempData = "IsJson=true";
DefaultBinary(parameter, expression, operatorValue);
parameter.CommonTempData = null;
}
else
{