mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Add remove assembly cache
This commit is contained in:
@@ -334,6 +334,7 @@ namespace SqlSugar
|
||||
public void RemoveCacheAll()
|
||||
{
|
||||
ReflectionInoHelper.RemoveAllCache();
|
||||
InstanceFactory.RemoveCache();
|
||||
}
|
||||
|
||||
public void RemoveCacheAll<T>()
|
||||
|
@@ -11,6 +11,12 @@ namespace SqlSugar
|
||||
static Assembly assembly = Assembly.Load(UtilConstants.AssemblyName);
|
||||
static Dictionary<string, Type> typeCache = new Dictionary<string, Type>();
|
||||
|
||||
|
||||
public static void RemoveCache()
|
||||
{
|
||||
typeCache = new Dictionary<string, Type>();
|
||||
}
|
||||
|
||||
#region Queryable
|
||||
public static ISugarQueryable<T> GetQueryable<T>(ConnectionConfig currentConnectionConfig)
|
||||
{
|
||||
|
Reference in New Issue
Block a user