private void ConfigureDbContext() { var options = new DbContextOptionsBuilder <OpenWeatherContext>() .UseInMemoryDatabase("weather_db") .Options; _context = new OpenWeatherContext(options, GetInstance <IMediatorHandler>()); _context.Database.EnsureCreated(); }
public Repository(OpenWeatherContext context) { _context = context; _entity = context.Set <TEntity>(); }
public HistoricWeatherRepository(OpenWeatherContext context) : base(context) { }