diff --git a/Src/Asp.Net/SqlSugar/Common/RewritableMethods.cs b/Src/Asp.Net/SqlSugar/Common/RewritableMethods.cs index 05a0434ea..5d82e1bbb 100644 --- a/Src/Asp.Net/SqlSugar/Common/RewritableMethods.cs +++ b/Src/Asp.Net/SqlSugar/Common/RewritableMethods.cs @@ -183,6 +183,16 @@ namespace SqlSugar return CacheManager.GetInstance(); } + public void RemoveCacheAll() + { + CacheManager.RemoveAllCache(); + } + + public void RemoveCache(string key) + { + CacheManager.GetInstance().Remove(key); + } + #region Private Methods private Dictionary DataReaderToDynamicList_Part(Dictionary readerValues, PropertyInfo item, List reval) {