Skip to content

Commit 37fb460

Browse files
committed
Make SessionFactoryImpl.imports a ReadOnlyDictionary to line up with how collectionMetadata is built and improve determistic behavior under accidental multithreading
1 parent 37e8302 commit 37fb460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Impl/SessionFactoryImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void HandleEntityNotFound(string entityName, string propertyName, object
141141
private readonly Dictionary<string, IIdentifierGenerator> identifierGenerators;
142142

143143
[NonSerialized]
144-
private readonly IDictionary<string, string> imports;
144+
private readonly IReadOnlyDictionary<string, string> imports;
145145

146146
[NonSerialized]
147147
private readonly IInterceptor interceptor;

0 commit comments

Comments
 (0)