Add Saveable.RemoveDataCache

This commit is contained in:
skx
2021-01-08 12:10:43 +08:00
parent 4446e2d09a
commit eef18eab13
2 changed files with 13 additions and 0 deletions

View File

@@ -161,6 +161,18 @@ namespace SqlSugar
return this;
}
public ISaveable<T> RemoveDataCache()
{
if (this.insertable != null)
{
this.insertable.RemoveDataCache();
}
if (this.updateable != null)
{
this.updateable.RemoveDataCache();
}
return this;
}
public ISaveable<T> InsertIgnoreColumns(Expression<Func<T, object>> columns)
{
LoadInsertable();

View File

@@ -22,5 +22,6 @@ namespace SqlSugar
ISaveable<T> UpdateIgnoreColumns(Expression<Func<T, object>> columns);
ISaveable<T> UpdateWhereColumns(Expression<Func<T, object>> columns);
ISaveable<T> EnableDiffLogEvent(object businessData = null);
ISaveable<T> RemoveDataCache();
}
}