コード例 #1
0
        protected static void ResetMongoDb()
        {
            MongoDbDriverHelper.ResetDriver();
            EntityMapping.RemoveAllDefinitions();

            EntityMapping.RemoveAllMappingProcessors();
            EntityMapping.AddMappingProcessors(DefaultMappingPack.Instance.Processors);

            TypeDiscovery.ClearCache();
        }
コード例 #2
0
        protected static void ResetMongoDb()
        {
            MongoDbDriverHelper.ResetDriver();
            EntityMapping.RemoveAllDefinitions();

            EntityMapping.RemoveAllMappingProcessors();
            EntityMapping.AddMappingProcessors(DefaultProcessors.CreateProcessors());

            TypeDiscovery.ClearCache();
            EntityIndexWriter.ClearCache();
        }