mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update exp to sql
This commit is contained in:
parent
779f062543
commit
2f41dca346
@ -786,7 +786,19 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
string fieldName = expression.Member.Name;
|
string fieldName = expression.Member.Name;
|
||||||
fieldName = this.Context.GetDbColumnName(expression.Expression.Type.Name, fieldName);
|
fieldName = this.Context.GetDbColumnName(expression.Expression.Type.Name, fieldName);
|
||||||
|
|
||||||
|
var isSpace = fieldName.Contains(UtilConstants.Space);
|
||||||
|
var guid = string.Empty;
|
||||||
|
if (isSpace)
|
||||||
|
{
|
||||||
|
guid = SnowFlakeSingle.Instance.NextId().ToString();
|
||||||
|
fieldName = fieldName.Replace(UtilConstants.Space, guid);
|
||||||
|
}
|
||||||
fieldName = Context.GetTranslationColumnName(fieldName);
|
fieldName = Context.GetTranslationColumnName(fieldName);
|
||||||
|
if (isSpace)
|
||||||
|
{
|
||||||
|
fieldName = fieldName.Replace(guid, UtilConstants.Space);
|
||||||
|
}
|
||||||
return fieldName;
|
return fieldName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user