public void Seed() { Logger.LogDebug("ZipCode Seed Started"); var shouldSeed = ShouldSeed(); if (!shouldSeed) { Logger.LogDebug("ZipCode Seed Skipped"); return; } ClearZipCodes(); var seedFilename = _configurationReader.ReadString(ConfigurationKeys.SeedsZipsFilename); LoadZipCodesFromCsv(seedFilename); }
public StoreDataContextFactory(IConfigurationReader configurationReader) { ConnectionString = configurationReader.ReadString(ConfigurationKeys.ConnectionStringsStoresDb); LoggingEnabled = configurationReader.ReadBool(ConfigurationKeys.EfLogEnabled); }