mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-19 17:51:36 +08:00
Optimized code
This commit is contained in:
@@ -186,7 +186,7 @@ namespace SqlSugar
|
||||
}
|
||||
else if ( entityValue != null &&UtilMethods.IsNumber( UtilMethods.GetUnderType(entityValue.GetType()).Name))
|
||||
{
|
||||
andString.AppendFormat("[{0}]={1} ", primaryField, $"{entityValue}");
|
||||
andString.AppendFormat("{0}={1} ", this.SqlBuilder.GetTranslationColumnName(primaryField), $"{entityValue}");
|
||||
}
|
||||
else if (entityValue != null && UtilMethods.GetUnderType(entityValue.GetType()) == UtilConstants.DateType)
|
||||
{
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace SqlSugar
|
||||
}
|
||||
else if ( entityValue != null &&UtilMethods.IsNumber( UtilMethods.GetUnderType(entityValue.GetType()).Name))
|
||||
{
|
||||
andString.AppendFormat("[{0}]={1} ", primaryField, $"{entityValue}");
|
||||
andString.AppendFormat("{0}={1} ", this.SqlBuilder.GetTranslationColumnName(primaryField), $"{entityValue}");
|
||||
}
|
||||
else if (entityValue != null && UtilMethods.GetUnderType(entityValue.GetType()) == UtilConstants.DateType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user