Skip to content

Commit

Permalink
Update Startup.cs (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
idormenco committed Apr 3, 2021
1 parent 14ff3ed commit b4c3e4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/DeUrgenta.IdentityServer/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Expand Down Expand Up @@ -145,8 +146,10 @@ private X509Certificate2 LoadCertificate(string base64EncodedCertificate, string


// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ApplicationDbContext context)
{
context.Database.Migrate();

if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
Expand Down

0 comments on commit b4c3e4d

Please sign in to comment.