I am using NodaTime package for date & time manipulation and it seems I cannot make it work with Mongo EF Core package. I was trying to follow Serialization documentation and I found only sealed class of BsonSerializerFactory.
Exception: No known serializer for type 'Instant'.
at MongoDB.EntityFrameworkCore.Serializers.BsonSerializerFactory.CreateTypeSerializer(Type type, IReadOnlyProperty property)
at MongoDB.EntityFrameworkCore.Serializers.BsonSerializerFactory.CreateTypeSerializer(IReadOnlyProperty property)
at MongoDB.EntityFrameworkCore.Serializers.BsonSerializerFactory.GetPropertySerializationInfo(IReadOnlyProperty property)
at MongoDB.EntityFrameworkCore.Storage.MongoUpdate.WriteProperty(IBsonWriter writer, Object value, IProperty property)
How can I register custom BSON serializers for EF Core mongo provider?