Created
October 29, 2017 11:36
-
-
Save ozgurrgul/a16d7222638e6a210a14ce8f61d1cd15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddDbContext<ApplicationDbContext>(); | |
services.AddMvc(); | |
} | |
public void Configure( | |
IApplicationBuilder app, | |
IHostingEnvironment env, | |
ApplicationDbContext dbContext | |
) | |
{ | |
app.UseMvc(); | |
dbContext.Database.EnsureCreated(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment