示例#1
0
        protected static void ResetMongoDb()
        {
            ResetMongoDbDriver();
            EntityMapping.RemoveAllDefinitions();

            EntityMapping.RemoveAllMappingProcessors();
            EntityMapping.AddMappingProcessors(DefaultMappingPack.Instance.Processors);
        }
示例#2
0
        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();
        }