public StoreRepository(dbstoreContext context) { _context = context; IConfigurationBuilder builder = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); _configuration = builder.Build(); _connectionString = _configuration.GetConnectionString("DBStore"); }
public StoreRepository() { _context = new dbstoreContext(); }