You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -121,7 +121,7 @@ public static IEnumerable<BsonDocumentWrapper> CreateMultiple<TNominalType>(IEnu
121
121
thrownewArgumentNullException("values");
122
122
}
123
123
124
-
varserializer=BsonSerializer.LookupSerializer(typeof(TNominalType));//TODO I think this could stay. We can potentially add methods with the domain as input.
@@ -38,7 +38,7 @@ public virtual IBsonSerializer GetSerializer(Type type) //TODO Need to make ano
38
38
/// <param name="serializerTypeDefinition">The serializer type definition.</param>
39
39
/// <param name="typeArguments">The type arguments.</param>
40
40
/// <returns>A serializer.</returns>
41
-
protectedvirtualIBsonSerializerCreateGenericSerializer(TypeserializerTypeDefinition,paramsType[]typeArguments)//TODO We need another version of this with the domain as input
41
+
protectedvirtualIBsonSerializerCreateGenericSerializer(TypeserializerTypeDefinition,paramsType[]typeArguments)//TODO We can keep this as is
Copy file name to clipboardExpand all lines: src/MongoDB.Bson/Serialization/Conventions/ObjectDiscriminatorConvention.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ public Type GetActualType(IBsonReader bsonReader, Type nominalType)
135
135
{
136
136
discriminator=discriminator.AsBsonArray.Last();// last item is leaf class discriminator
137
137
}
138
-
actualType=BsonSerializer.LookupActualType(nominalType,discriminator);//TODO For this (and other discriminator conventions) we need to add methods to IDiscriminatorConvention to pass the domain
Copy file name to clipboardExpand all lines: src/MongoDB.Bson/Serialization/Conventions/StringIdStoredAsObjectIdConvention.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ public void Apply(BsonMemberMap memberMap)
38
38
return;
39
39
}
40
40
41
-
vardefaultStringSerializer=BsonSerializer.LookupSerializer(typeof(string));//TODO For this we'd need to add a new Apply(memberMap, domain) method to IMemberMapConvention
0 commit comments