Unlock EF Core Model First in your .NET 9 Web API projects! This complete guide takes you step-by-step through using EF Tools, managing Migrations, and implementing DTOs.
In this video, you'll learn how to:
✅ Define entities using the Model First approach
✅ Use EF Core tools to create migrations and update the database
✅ Add new properties and new tables via code and update schema
✅ Seed data into the database
✅ Create clean Web API endpoints using DTOs
✅ Solve common issues like circular references in Swagger
Whether you're a beginner or refreshing your skills, this video will give you hands-on experience with EF Core tools, relationships, and Web API integration.
🔔 Don’t forget to subscribe to Learn Smart Coding for more full-stack .NET & Angular content in Tamil and English!
Video Chapter
00:00 - Intro
01:04 - What is EF Core?
05:20 - Creating the Model Classes
13:40 - Installing EF Core CLI tools
16:20 - Adding Migrations & Updating DB
21:00 - Adding New Properties & Tables
27:00 - Building API Endpoints using DTOs
28:00 - Seeding Initial Data
30:00 - Final Thoughts
Please post your questions in the comment section and I will be happy to answer your questions.
📌 Source Code:
https://github.com/learnsmartcoding/aspnetcore-efcore-modelfirst-databasefirst
Subscribe for more useful videos just like this: https://www.youtube.com/channel/UCKUxSY2xp12QiP3c60sOc-g?sub_confirmation=1
Happy coding!