mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Synchronization code
This commit is contained in:
parent
83779a671a
commit
2f3c567a21
@ -53,7 +53,7 @@ namespace SqlSugar
|
||||
string sql;
|
||||
SugarParameter[] paramters;
|
||||
_ExecuteCommand(out sql, out paramters);
|
||||
var result =await Db.ExecuteCommandAsync(sql, paramters);
|
||||
var result = await Db.ExecuteCommandAsync(sql, paramters);
|
||||
After(sql);
|
||||
return result;
|
||||
}
|
||||
@ -61,7 +61,7 @@ namespace SqlSugar
|
||||
{
|
||||
return await ExecuteCommandAsync() > 0;
|
||||
}
|
||||
public IDeleteable<T> AsType(Type tableNameType)
|
||||
public IDeleteable<T> AsType(Type tableNameType)
|
||||
{
|
||||
return AS(this.Context.EntityMaintenance.GetEntityInfo(tableNameType).DbTableName);
|
||||
}
|
||||
@ -79,7 +79,17 @@ namespace SqlSugar
|
||||
this.Context.MappingTables.Add(entityName, tableName);
|
||||
return this; ;
|
||||
}
|
||||
|
||||
public IDeleteable<T> EnableDiffLogEventIF(bool isEnableDiffLogEvent, object businessData = null)
|
||||
{
|
||||
if (isEnableDiffLogEvent)
|
||||
{
|
||||
return EnableDiffLogEvent(businessData);
|
||||
}
|
||||
else
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
public IDeleteable<T> EnableDiffLogEvent(object businessData = null)
|
||||
{
|
||||
|
||||
|
@ -34,6 +34,7 @@ namespace SqlSugar
|
||||
IDeleteable<T> WhereColumns(List<T> list,Expression<Func<T, object>> columns);
|
||||
IDeleteable<T> WhereColumns(List<Dictionary<string,object>> columns);
|
||||
IDeleteable<T> Where(List<IConditionalModel> conditionalModels);
|
||||
IDeleteable<T> EnableDiffLogEventIF(bool isEnableDiffLogEvent, object businessData = null);
|
||||
IDeleteable<T> EnableDiffLogEvent(object businessData = null);
|
||||
IDeleteable<T> RemoveDataCache();
|
||||
IDeleteable<T> RemoveDataCache(string likeString);
|
||||
|
Loading…
Reference in New Issue
Block a user