public static void AllCountries(ICountriesDbContext context) { DbSet <Country> dbSet = context.Countries; NewCountry(dbSet, "Afghanistan", CountryCodes.AFGHANISTAN); NewCountry(dbSet, "Australia", CountryCodes.AUSTRALIA); NewCountry(dbSet, "Austria", CountryCodes.AUSTRIA); var uk = NewCountry(dbSet, "United Kingdom", CountryCodes.UK); var usa = NewCountry(dbSet, "United States", CountryCodes.USA); NewCountry(dbSet, "France", CountryCodes.FRANCE); NewCountry(dbSet, "Ireland", CountryCodes.IRELAND); NewCountry(dbSet, "Zimbabwe", CountryCodes.ZIMBABWE); }
public CountriesRepository(ILogger <CountriesRepository> logger, IDbConnectionFactory dbConnectionFactory, ICountriesDbContext dbContext, IMapper mapper, IMemoryCache memoryCache) : base(logger, dbConnectionFactory, dbContext, mapper, memoryCache) { }