Example #1
0
 public EfMappingViewsInitializer(EfMappingViewsFileStore efMappingViewsFileStore, IMetadataWorkspaceFileProvider metadataWorkspaceFileProvider, ILogProvider logProvider, IEfMappingViewsHash efMappingViewsHash)
 {
     _efMappingViewsFileStore = efMappingViewsFileStore;
     _logger                        = logProvider.GetLogger(nameof(EfMappingViewsInitializer));
     _performanceLogger             = logProvider.GetLogger("Performance." + nameof(EfMappingViewsInitializer));
     _metadataWorkspaceFileProvider = metadataWorkspaceFileProvider;
     _efMappingViewsHash            = efMappingViewsHash;
 }
Example #2
0
 public EfMappingViewCacheFactory(EfMappingViewsFileStore mappingViewsFileStore, ILogProvider logProvider)
 {
     _mappingViewsFileStore = mappingViewsFileStore;
     _logger    = logProvider.GetLogger(nameof(EfMappingViewCacheFactory));
     _viewCache = new Lazy <EfMappingViewCache>(CreateEfMappingViewCache);
 }