Add remove assembly cache

This commit is contained in:
610262374@qq.com
2018-12-14 14:30:42 +08:00
parent 5f74b526a5
commit 64413a6609
2 changed files with 7 additions and 0 deletions

View File

@@ -334,6 +334,7 @@ namespace SqlSugar
public void RemoveCacheAll()
{
ReflectionInoHelper.RemoveAllCache();
InstanceFactory.RemoveCache();
}
public void RemoveCacheAll<T>()

View File

@@ -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)
{