Загрузка страницы

Entity Framework Core Database First Approach - Build ASP.NET Core Razor Pages App using EF Core

In this video, we will make an ASP.NET Core Web Application using Razor pages and connect the application to a SQL server database using Entity Framework core database first technique.

💖 Subscribe to show support: https://bit.ly/2FAgXzS
☕ Buy me a coffee: https://www.buymeacoffee.com/SameerSaini

We would need to install the below NuGet packages for this video
Microsoft.Entityframeworkcore.SqlServer
Microsoft.Entityframeworkcore.Tools

Scaffolding Entity framework database in the ASP.NET core application

"Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models"

We will then change the connection to the database from the startup.cs file. We will use dependency injection to inject the DBContext and use it in the database services.

Видео Entity Framework Core Database First Approach - Build ASP.NET Core Razor Pages App using EF Core канала Sameer Saini
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 июля 2021 г. 10:41:07
00:23:05
Яндекс.Метрика