mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
-
This commit is contained in:
@@ -44,7 +44,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (deleteObjs == null || deleteObjs.Count() == 0)
|
||||
{
|
||||
Where("1=2 ");
|
||||
Where(SqlBuilder.SqlFalse);
|
||||
return this;
|
||||
}
|
||||
string tableName = this.Context.EntityProvider.GetTableName<T>();
|
||||
@@ -123,7 +123,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (primaryKeyValues == null || primaryKeyValues.Count() == 0)
|
||||
{
|
||||
Where("1=2 ");
|
||||
Where(SqlBuilder.SqlFalse);
|
||||
return this;
|
||||
}
|
||||
return In<PkType>(primaryKeyValues.ToArray());
|
||||
@@ -133,7 +133,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (primaryKeyValues == null || primaryKeyValues.Count() == 0)
|
||||
{
|
||||
Where("1=2 ");
|
||||
Where(SqlBuilder.SqlFalse);
|
||||
return this;
|
||||
}
|
||||
string tableName = this.Context.EntityProvider.GetTableName<T>();
|
||||
|
@@ -44,6 +44,7 @@ namespace SqlSugar
|
||||
return " HAVING " + sqlString;
|
||||
}
|
||||
public virtual string SqlParameterKeyWord { get { return "@"; } }
|
||||
public virtual string SqlFalse { get { return "1=2 "; } }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@@ -19,10 +19,12 @@ namespace SqlSugar
|
||||
UpdateBuilder UpdateBuilder { get; set; }
|
||||
|
||||
string SqlParameterKeyWord { get; }
|
||||
string SqlFalse { get; }
|
||||
|
||||
string GetTranslationTableName(string name);
|
||||
string GetTranslationColumnName(string entityName, string propertyName);
|
||||
string GetTranslationColumnName(string propertyName);
|
||||
string GetNoTranslationColumnName(string name);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user