protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public GinsoftUserRepository(GinsoftUserContext context) { _context = context; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, PersistedGrantDbContext persistedGrantDbContext, /*ConfigurationDbContext configurationDbContext,*/ GinsoftUserContext ginsoftUserContext) { loggerFactory.AddConsole(); loggerFactory.AddDebug(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } persistedGrantDbContext.Database.Migrate(); //configurationDbContext.Database.Migrate(); ginsoftUserContext.Database.Migrate(); //ginsoftUserContext.EnsureSeedDataForContext(); app.UseIdentityServer(); app.UseAuthentication(); app.UseStaticFiles(); app.UseMvcWithDefaultRoute(); }