ConnectionString in appsettings.json: Use in Entity Framework Core for SQL Server

preview_player
Показать описание


The ConnectionString section can also be used with Entity Framework Core to communicate with a database.

As a result, it allows Entity Framework to be used in different parts of an application, such as a controller in a Web API, or in an MVC application.

💻 Download the code example for this demo 💻

📖 Learn .NET and C# with our online courses 📖

► Chapters
0:25 Learn .NET with our online courses
0:55 SQL Server database used for example
1:11 Entity Framework DbContext setup
2:55 Read the DbContext in an ASP.NET Core Web API
4:39 Preview of next part

#appsettings #connectionstring #entityframework
Рекомендации по теме
Комментарии
Автор

Thank you very much, This has saved my day. :)

acodinggirl
Автор

What kind of approach is this code first or db first?

Sizzlingravz
Автор

you don't need to specify the password in the connection string?

youkickedmydog