Part 59-Configuration Of Sql Server With Ef Core In Asp.Net

Опубликовано: 26 Август 2020
на канале: Vetrivel D
265
4

Asp.net core video 59:
SQL Server Configuration with entity framework core:
In this video,we stored the connection string appsettings.json configuration file and read connection string from appsettings.json file by using IConfiguration service GetConnectionString()
method ,provided as a parameter to UseSqlServer() extension method in Startup.cs class, in order to configure our application specific DbContext class to use Microsoft SQL Server as the database.
We used AddDbContextPool() method in ConfigureServices() method in Startup.cs file to register our application specific DbContext class with the ASP.NET Core dependency injection system.