コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
コード例 #2
0
 public GinsoftUserRepository(GinsoftUserContext context)
 {
     _context = context;
 }
コード例 #3
0
ファイル: Startup.cs プロジェクト: GintV/quantum-algorithms
        // 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();
        }