static MongoDbContextOptionsExtensions() { if (!typeof(ObjectId).GetTypeInfo().IsDefined(typeof(TypeConverterAttribute))) { TypeDescriptor.AddAttributes(typeof(ObjectId), new TypeConverterAttribute(typeof(ObjectIdTypeConverter))); } EntityFrameworkCoreConventionPack.Register(type => true); }
static MongoEntityFixture() { EntityFrameworkCoreConventionPack.Register(type => true); }
static MongoServiceBuilder() { EntityFrameworkCoreConventionPack.Register(type => true); }