We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91f6c68 + 0412152 commit 2cc00c7Copy full SHA for 2cc00c7
LiteDB/Client/Mapper/BsonMapper.GetEntityMapper.cs
@@ -28,9 +28,9 @@ internal EntityMapper GetEntityMapper(Type type)
28
try
29
{
30
// We need to add the empty shell, because ``BuildEntityMapper`` may use this method recursively
31
- mapper = new EntityMapper(type, cts.Token);
32
- EntityMapper addedMapper = _entities.GetOrAdd(type, mapper);
33
- if (ReferenceEquals(addedMapper, mapper))
+ var newMapper = new EntityMapper(type, cts.Token);
+ mapper = _entities.GetOrAdd(type, newMapper);
+ if (ReferenceEquals(mapper, newMapper))
34
35
36
0 commit comments