mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -15,7 +15,7 @@ namespace SqlSugar
|
||||
public class ExpressionContext : ExpResolveAccessory
|
||||
{
|
||||
#region Fields
|
||||
private bool _IsSingle = true;
|
||||
private bool _IsSingle = true;
|
||||
#endregion
|
||||
|
||||
#region properties
|
||||
@@ -31,7 +31,8 @@ namespace SqlSugar
|
||||
{
|
||||
return _IsSingle;
|
||||
}
|
||||
set {
|
||||
set
|
||||
{
|
||||
_IsSingle = value;
|
||||
}
|
||||
}
|
||||
@@ -120,6 +121,10 @@ namespace SqlSugar
|
||||
public virtual string GetTranslationColumnName(string columnName)
|
||||
{
|
||||
Check.ArgumentNullException(columnName, string.Format(ErrorMessage.ObjNotExist, "column Name"));
|
||||
if (columnName.Substring(0, 1) == this.SqlParameterKeyWord)
|
||||
{
|
||||
return columnName;
|
||||
}
|
||||
if (IsTranslationText(columnName)) return columnName;
|
||||
if (columnName.Contains("."))
|
||||
{
|
||||
@@ -164,7 +169,7 @@ namespace SqlSugar
|
||||
|
||||
public virtual string GetEqString(string eqName, string fieldValue)
|
||||
{
|
||||
return string.Format(" {0} {1} {2} ", GetTranslationColumnName(eqName), "=", fieldValue);
|
||||
return string.Format(" {0} {1} {2} ", GetTranslationColumnName(eqName), "=", GetTranslationColumnName(fieldValue));
|
||||
}
|
||||
|
||||
public virtual string GetAsString(string asName, string fieldValue, string fieldShortName)
|
||||
|
Reference in New Issue
Block a user