コード例 #1
0
        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);
        }
コード例 #2
0
 public StoreDataContextFactory(IConfigurationReader configurationReader)
 {
     ConnectionString = configurationReader.ReadString(ConfigurationKeys.ConnectionStringsStoresDb);
     LoggingEnabled   = configurationReader.ReadBool(ConfigurationKeys.EfLogEnabled);
 }