Browse Source

Synchronization code

pull/29/head
sunkaixuan 2 years ago
parent
commit
2f3c567a21
  1. 12
      Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs
  2. 1
      Src/Asp.Net/SqlSugar/Interface/IDeleteable.cs

12
Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs

@ -79,7 +79,17 @@ namespace SqlSugar
this.Context.MappingTables.Add(entityName, tableName); this.Context.MappingTables.Add(entityName, tableName);
return this; ; 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) public IDeleteable<T> EnableDiffLogEvent(object businessData = null)
{ {

1
Src/Asp.Net/SqlSugar/Interface/IDeleteable.cs

@ -34,6 +34,7 @@ namespace SqlSugar
IDeleteable<T> WhereColumns(List<T> list,Expression<Func<T, object>> columns); IDeleteable<T> WhereColumns(List<T> list,Expression<Func<T, object>> columns);
IDeleteable<T> WhereColumns(List<Dictionary<string,object>> columns); IDeleteable<T> WhereColumns(List<Dictionary<string,object>> columns);
IDeleteable<T> Where(List<IConditionalModel> conditionalModels); IDeleteable<T> Where(List<IConditionalModel> conditionalModels);
IDeleteable<T> EnableDiffLogEventIF(bool isEnableDiffLogEvent, object businessData = null);
IDeleteable<T> EnableDiffLogEvent(object businessData = null); IDeleteable<T> EnableDiffLogEvent(object businessData = null);
IDeleteable<T> RemoveDataCache(); IDeleteable<T> RemoveDataCache();
IDeleteable<T> RemoveDataCache(string likeString); IDeleteable<T> RemoveDataCache(string likeString);

Loading…
Cancel
Save