mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update exp to sql
This commit is contained in:
@@ -786,7 +786,19 @@ namespace SqlSugar
|
||||
{
|
||||
string fieldName = expression.Member.Name;
|
||||
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);
|
||||
if (isSpace)
|
||||
{
|
||||
fieldName = fieldName.Replace(guid, UtilConstants.Space);
|
||||
}
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user