public void Configure( IApplicationBuilder app, IWebHostEnvironment env, MeetupAppDbContext dbContext) { EnsureDatabaseIsCreated(dbContext); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvcWithDefaultRoute(); }
public void Configure( IApplicationBuilder app, IWebHostEnvironment env, MeetupAppDbContext dbContext) { EnsureDatabaseIsCreated(dbContext); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvcWithDefaultRoute(); //app.UseSwagger(); //app.UseSwaggerUI(c => // c.SwaggerEndpoint("/swagger/v1/swagger.json", "MeetupApp v1")); }
public UserProfileRepository(MeetupAppDbContext dbContext) { _dbContext = dbContext; }
public MeetupRepository(MeetupAppDbContext dbContext) { _dbContext = dbContext; }
private void EnsureDatabaseIsCreated(MeetupAppDbContext dbContext) { dbContext.Database.Migrate(); DatabaseSeed.Seed(dbContext); }
public GetMeetupsListQueryHandler(MeetupAppDbContext dbContext) { _dbContext = dbContext; }
public MeetupReadModelUpdater(MeetupAppDbContext dbContext) { _dbContext = dbContext; }
public EfCoreUnitOfWork(MeetupAppDbContext dbContext) { _dbContext = dbContext; }