Synchronization code

This commit is contained in:
sunkaixuan
2023-06-11 00:33:09 +08:00
parent a2ba853415
commit 1719536b78

View File

@@ -38,6 +38,11 @@ namespace SqlSugar
{
return orderByModel.AsName.Replace(UtilConstants.ReplaceKey, string.Empty);
}
if (orderByModel.AsName?.Contains("[")==true)
{
orderByModel.AsName = orderByModel.AsName.Trim('[').Trim(']');
return this.SqlTranslationLeft + orderByModel.AsName + this.SqlTranslationRight;
}
return this.GetTranslationColumnName(orderByModel.AsName);
}