.NET Core 7 Entity Framework Project: DataBase Connection String and Dependency Injection

preview_player
Показать описание
Learn NET Core 7 Project : Explore database connection string configuration and dependency injection in a .NET Core 7 Entity Framework project. Learn how to set up your database, configure connection strings, and use dependency injection effectively for smoother application development.

ASP.NET Core 7 Full Course
Рекомендации по теме
Комментарии
Автор

Ну а дальше то как в HomeController вызвать строку подключения, причем так чтобы она отработала лишь один раз и жила все время пока работает программа? Причем желательно вызывать не во Views каждый раз открывая и закрывая подключение к БД, а открыть один раз и все

Al-lwgy