Synchronization code

This commit is contained in:
sunkaixuan 2023-06-28 13:22:18 +08:00
parent 60a36c1015
commit 277b05cdc0

View File

@ -18,7 +18,7 @@ namespace SqlSugar
} }
public EntityInfo GetEntityInfo(Type type) 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, return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
() => () =>
{ {