Exemple #1
0
        public EIMCacheProvider(CacheContainer cacheContainer, params ICacheManager[] dependentManagers)
            : base(cacheContainer, dependentManagers)
        {
#if DEBUG
            this.MaxCount = ConfigurationManagerHelper.GetIntValue("DataLoadMaxCount");
            if (this.MaxCount == 0)
            {
                this.MaxCount = int.MaxValue;
            }
#endif
            this.DataModelProviderFactory = new EFDataModelProviderFactory();
            DataModelMapperFactory dataModelMapperFactory = new DataModelMapperFactory(cacheContainer);
            this.CacheMapper = dataModelMapperFactory.Create <CacheType, DataModelType>();
        }