// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, QuotesDBContext quotesDBContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); //quotesDBContext.Database.EnsureCreated(); // Check for DB is create dor not //quotesDBContext.Database.Migrate(); // for future changes in database use app.UseResponseCaching(); app.UseMvc(); }
public FrenchManager(IOptions <Settings> settings) { _context = new QuotesDBContext(settings); }
public ChineseManager(IOptions <Settings> settings) { _context = new QuotesDBContext(settings); }
public ArabicManager(IOptions <Settings> settings) { _context = new QuotesDBContext(settings); }
public QuoteService(QuotesDBContext context) { _context = context; }
public QuotesController(QuotesDBContext quotesDBContext) { this.quotesDBContext = quotesDBContext; }
public QuotesController(QuotesDBContext context) { _dbContext = context; }