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.
1 parent e793b66 commit 67495b3Copy full SHA for 67495b3
src/MongoDB.Driver/MongoCollectionSettings.cs
@@ -124,7 +124,8 @@ public ReadPreference ReadPreference
124
/// </summary>
125
internal IBsonSerializationDomain SerializationDomain
126
{
127
- get => _serializationDomain.Value;
+ //QUESTION Is this correct? Normally the domain would be setup by ApplyDefaultValues, but for testing it would not work.
128
+ get => _serializationDomain.Value ?? BsonSerializer.DefaultSerializationDomain;
129
set
130
131
if (_isFrozen) { throw new InvalidOperationException("MongoCollectionSettings is frozen."); }
0 commit comments