Skip to content

Commit d1acc1f

Browse files
committed
Revert moving PrefetchFieldDescriptorCache property initializer from ctor
1 parent 71676f1 commit d1acc1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm/Orm/Domain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ public static Domain Demand()
119119

120120
internal KeyGeneratorRegistry KeyGenerators { get; private set; }
121121

122-
internal ConcurrentDictionary<TypeInfo, IReadOnlyList<PrefetchFieldDescriptor>> PrefetchFieldDescriptorCache { get; } =
123-
new ConcurrentDictionary<TypeInfo, IReadOnlyList<PrefetchFieldDescriptor>>();
122+
internal ConcurrentDictionary<TypeInfo, IReadOnlyList<PrefetchFieldDescriptor>> PrefetchFieldDescriptorCache { get; }
124123

125124
internal ICache<object, Pair<object, ParameterizedQuery>> QueryCache { get; private set; }
126125

@@ -421,6 +420,7 @@ internal Domain(DomainConfiguration configuration, object upgradeContextCookie,
421420
GenericKeyFactories = new ConcurrentDictionary<TypeInfo, GenericKeyFactory>();
422421
EntityDataReader = new EntityDataReader(this);
423422
KeyGenerators = new KeyGeneratorRegistry();
423+
PrefetchFieldDescriptorCache = new ConcurrentDictionary<TypeInfo, IReadOnlyList<PrefetchFieldDescriptor>>();
424424
KeyCache = new LruCache<Key, Key>(Configuration.KeyCacheSize, k => k);
425425
QueryCache = new FastConcurrentLruCache<object, Pair<object, ParameterizedQuery>>(Configuration.QueryCacheSize, k => k.First);
426426
PrefetchActionMap = new Dictionary<TypeInfo, Action<SessionHandler, IEnumerable<Key>>>();

0 commit comments

Comments
 (0)