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

Sameer Saini
Sameer Saini
22.4 هزار بار بازدید - 3 سال پیش - Full ASP.NET Courses 🚀👉 Build
Full ASP.NET Courses 🚀

👉 Build ASP.NET Core Web API - Scratch To Finish
https://www.udemy.com/course/build-re...

👉 Build Amazing Apps With ANGULAR and ASP.NET Core REST API
https://www.udemy.com/course/real-wor...

👉 ASP.NET Core Razor Pages - Scratch to Finish
https://www.udemy.com/course/aspnet-c...

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.
3 سال پیش در تاریخ 1400/04/09 منتشر شده است.
22,466 بـار بازدید شده
... بیشتر