📌 Learn how to connect your SQL Server database to ASP.NET Core using Entity Framework Core with the Database-First (DB-First) approach!
This tutorial covers step-by-step implementation using MVC architecture. Ideal for beginners and professionals working on real-world enterprise applications.
👨💻 What You’ll Learn in This Video:
Setting up ASP.NET Core MVC project
Installing required EF Core NuGet packages
Scaffolding models from an existing database
Configuring DbContext in Startup.cs
Performing CRUD operations with DB-First
⏱️ Timestamps for Easy Navigation:
00:00 - Introduction
00:52 - Create DB, Table & Stored Procedure in SSMS
06:32 - Installing EF Core NuGet Packages
11:18 - Scaffolding Models from Database
16:50 - Move DbContext Connection String to appsettings.json
18:50 - Register DbContext Service in Program.cs (EF Core Setup)
25:10 - Explain the DbContext Class in EF Core (Role & Structure)
25:45 - How to Update Database Using Scaffold-DbContext in EF Core
28:42 - Fetch Data from Database in Controller and Display in View
31:30 - Creating View
32:07 - Execute Stored Procedure and Fetch Data in ASP.NET Core
37:40 - Register DbSet for Stored Procedure Model in Program.cs
44:25 - Create Razor View to Display Stored Procedure Data (ASP.NET Core)
45:45 - Final Testing
🔧 Technologies Used:
ASP.NET Core MVC
Entity Framework Core
Visual Studio
SQL Server
C# (C Sharp)
📢 Don't Forget To:
👍 Like the video
💬 Comment below if you have questions
🔔 Subscribe for more .NET & SQL tutorials
📌 Share with your developer community!
🎥 Watch More ASP.NET Core & .NET Videos:
👉 ASP.NET Core Important Topics Playlist
• ASP.NET MVC Core with Visual Studio | ASP....
👉 ASP.NET Core MVC Tutorials (Step-by-Step)
• ASP.NET Core MVC 6/7/8 Tutorials in Hindi ...
👉 Fix ASP.NET Core Errors & Common Issues
• TECH | Fix ASP.NET Core, Visual Studio & S...
👉 Deploy & Publish ASP.NET Projects
• Publish On IIS Server | Deploy ASP.NET Cor...
👉 SQL Server Basics & Advanced Queries
• SQL Server Tutorial | Learn SQL Queries, J...
👉 Database Connectivity in ASP.NET Projects
• Database Connectivity | Database Connectiv...
👉 Build Windows Services with ASP.NET
• Windows Services | Create Windows Service ...
👉 Cloud Integration & Hosting for .NET
• Cloud | Create Windows Service in C# | .NE...
📌 Hashtags:
#EntityFrameworkCore #DBFirstApproach #ASPNETCore #EFCoreTutorial #DatabaseConnection
#DotNetDeveloper #SQLServer #CodeWithMe #FullStackDevelopment #LearnDotNet
ASP.NET Core, Entity Framework Core DB-First, Connect SQL Server, ASP.NET MVC, EF Core Tutorial, Database Connection, CRUD ASP.NET Core, Entity Framework Core Tutorial, MVC Architecture, ASP.NET Core Project Setup