Update GetEntityInfo Cache Key

This commit is contained in:
sunkaixuan
2023-06-28 12:57:59 +08:00
parent 4c41883d01
commit 60a36c1015

View File

@@ -18,7 +18,7 @@ namespace SqlSugar
}
public EntityInfo GetEntityInfo(Type type)
{
string cacheKey = "GetEntityInfo" + type.GetHashCode() + type.FullName;
string cacheKey = "GetEntityInfo" + type.GetHashCode() + type.FullName+this.Context?.CurrentConnectionConfig?.ConfigId;
return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
() =>
{