Browse Source

Update .net

pull/12/MERGE
610262374@qq.com 6 years ago
parent
commit
9f9b307049
  1. 1
      Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs
  2. 6
      Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs

1
Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs

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

6
Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs

@ -11,6 +11,12 @@ namespace SqlSugar
static Assembly assembly = Assembly.Load(UtilConstants.AssemblyName); static Assembly assembly = Assembly.Load(UtilConstants.AssemblyName);
static Dictionary<string, Type> typeCache = new Dictionary<string, Type>(); static Dictionary<string, Type> typeCache = new Dictionary<string, Type>();
public static void RemoveCache()
{
typeCache = new Dictionary<string, Type>();
}
#region Queryable #region Queryable
public static ISugarQueryable<T> GetQueryable<T>(ConnectionConfig currentConnectionConfig) public static ISugarQueryable<T> GetQueryable<T>(ConnectionConfig currentConnectionConfig)
{ {

Loading…
Cancel
Save