protected static void ResetMongoDb() { MongoDbDriverHelper.ResetDriver(); EntityMapping.RemoveAllDefinitions(); EntityMapping.RemoveAllMappingProcessors(); EntityMapping.AddMappingProcessors(DefaultMappingPack.Instance.Processors); TypeDiscovery.ClearCache(); }
protected static void ResetMongoDb() { MongoDbDriverHelper.ResetDriver(); EntityMapping.RemoveAllDefinitions(); EntityMapping.RemoveAllMappingProcessors(); EntityMapping.AddMappingProcessors(DefaultProcessors.CreateProcessors()); TypeDiscovery.ClearCache(); EntityIndexWriter.ClearCache(); }