Created
May 26, 2022 16:48
-
-
Save talkingdotnet/c28ee905bffda3dcf496c4e5ccc398ba 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.Configure<AppSettings>(Configuration.GetSubKey("AppSettings")); | |
services.AddEntityFramework() | |
.AddSqlServer() | |
.AddDbContext<SchoolContext>(); | |
// Add MVC services to the services container. | |
services.AddMvc(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment