Skip to content
UdemyHighest Rated on UdemyC#Paid courseIntermediate levelCertificate

Entity Framework in Depth: The Complete Guide (Udemy.com)

Connect your applications to a SQL Server database

Created by: Mosh Hamedani

Last updated August 2018

Our take

Based on the ratings of 14,943 students, a sample of their written reviews and the syllabus, as the course stood in August 2018. No course pays to be reviewed.

Mosh Hamedani's Entity Framework course packs 79 lectures into 6.6 hours, all built on Entity Framework 6, the classic .NET Framework version. The syllabus covers database-first and code-first workflows, migrations, overriding conventions with data annotations and the fluent API, LINQ queries, loading strategies and the repository pattern. The requirements ask for solid C#, including generics and lambdas, so it suits working .NET developers rather than newcomers. The catch is age. It was last updated in August 2018 and does not cover Entity Framework Core.

Reviewers keep coming back to the structure. They say Mosh explains code-first versus database-first clearly, and one calls the repository pattern explanation the best thing in the course. The exercises get specific praise for making the concepts stick. The complaints are consistent too. Students point out that EF6 is outdated for anyone on ASP.NET Core, one spent much of the course fighting package installs, and another says questions in the Q&A no longer get answers. Of nearly 15,000 ratings, only a couple hundred are one or two stars.

With about 72,000 students and a 4.5 rating, it remains a trusted pick for EF6 specifically, and Mosh's teaching is the main reason. For anyone maintaining a legacy .NET Framework app, it's a quick, well-taught way to get fluent. Starting a new project? The core ideas transfer, but a course built on EF Core will save a lot of translating old APIs to new ones.

Best forC# developers maintaining .NET Framework apps on EF6 who want a fast, well-structured grounding in its workflows.
Skip it ifYou're starting fresh on ASP.NET Core and need Entity Framework Core, which this 2018 course doesn't cover.

Pros

  • Clear, side-by-side treatment of code-first and database-first workflows
  • One reviewer calls the repository pattern explanation the best part
  • Hands-on exercises based on real scenarios reinforce each section
  • Short at 6.6 hours, so it can be finished in a weekend

Cons

  • Built on EF6 and last updated in 2018, with no Entity Framework Core coverage
  • Some students lost time getting packages and libraries to install
  • Reviewers say Q&A questions no longer get answered
Yes there are newer versions of EF now released that are not covered here, but this course is still well worth it if you want a solid foundation in EF.
Amos Scott, a student

Intermediate is accurate: it expects comfortable C# with generics and lambdas, roughly three months of real programming.

icon
What you will learn

  • Understand the differences between database-first and code-first workflows
  • Build a domain model using database-first workflow
  • Build a domain model using code-first workflow (with an existing or a new database)
  • Use code-first migrations to upgrade or downgrade your database
  • Override code-first conventions (using data annotations and fluent API)
  • Query data using LINQ (using query syntax and extension methods)
  • Use eager loading, lazy loading and explicit loading effectively
  • Add, update and remove objects
  • Use additional tools to profile and troubleshoot your applications
  • Understand what the repository pattern is, what and if you need it, and how to implement it
  • Apply best practices with Entity Framework

Course content

10 sections · 79 lectures · 6.6 hours of video 2 articles

  1. 1Introduction 2 free previews3 lectures · 3 min
  2. 2Getting Started 4 free previews7 lectures · 27 min
  3. 3Building a Model using Database-First Workflow11 lectures · 53 min
  4. 4Building a Model using Code-First Workflow12 lectures · 1.1 hours
  5. 5Overriding Code-First Conventions11 lectures · 1.1 hours
  6. 6Querying Data using LINQ10 lectures · 1.1 hours
  7. 7Loading Related Objects7 lectures · 27 min
  8. 8Updating Data9 lectures · 33 min
  9. 9Using Entity Framework in Your Applications7 lectures · 46 min
  10. 10Conclusion2 lectures · 1 min

Who it is for

The instructor says it suits

  • Any .NET developer who wants to persist or query domain objects from a database

What you need before you start

  • Good understanding of advanced C# constructs (generics, lambda expressions)

How it compares

Against the other 193 rated Udemy courses in C# on CourseDuck:

  • Rating4.5 out of 5higher than 57% of them
  • Reviews14,943#5 of 194 by number of reviews
  • Length6.6 hourslonger than 53% of them
  • Last updatedAugust 2018earlier than 77% of them

icon
Course Description

With over 6,500 students and 1,500+ positive reviews, this course is Udemy's most popular course for learning Entity Framework! 


Entity Framework is an Object / Relational Mapper (O/RM) that helps you read and write data from and to a database. In this course, Mosh, teaches you the core concepts of Entity Framework through a series of clear, concise and hands-on lectures.


Whether you're new to Entity Framework, or been using it for a while but are looking for a comprehensive course with a clean structure to fill the missing parts, you're going to love this course.


By the end of watching this course, you'll be able to:

  • Understand the differences between code-first and database-first workflows
  • Build a domain model using database-first workflow
  • Build a domain model using code-first workflow (with a new or an existing database)
  • Use code-first migrations to upgrade or downgrade your database
  • Override code-first conventions (using data annotations and fluent API)
  • Query data using LINQ (using query syntax and extension methods)
  • Use eager loading, lazy loading and explicit loading effectively
  • Add, update and remove objects
  • Use additional tools to profile and troubleshoot your applications
  • Understand what the repository pattern is, why and when to use it and how
  • Apply best practices with Entity Framework


Unlike other books or courses that teach Entity Framework like a manual, Mosh walks you through real-world scenarios using his extensive experience in the field. Not only does he teach you the fundamentals of Entity Framework, he'll also teach you best practices along the way.


In each section, you'll find exercises to help you reinforce the materials. These exercises have been chosen from real-world scenarios to help you prepare for the challenges of the real-world. Also, some sections include cheat sheets so you can quickly review what you learn in that section.


This course is produced with Entity Framework 6. If you're using an older version of Entity Framework, you can still take this course as long as your version of Entity Framework is 4.1 or higher.



PREREQUISITES

In order to take this course, you should have at least 3 months experience programming in C#. If you need to strengthen your C# fundamentals, you can take Mosh's related courses:

  • C# Basics for Beginners
  • C# Intermediate: Classes, Interfaces and Object-oriented Programming
  • C# Advanced 



WHAT OTHER STUDENTS WHO HAVE TAKEN THIS COURSE SAY:

"May God bless you and your efforts to create high quality courses. This has really changed my life from working as a security guard and doing websites for free, now I am a professional." -Danish Jafri


"I'm impressed by Mosh's ability to strike the right balance of topic background, demo and tip and tricks to get around common issues when learning a technology. Great job Mosh! I'm more than happy to have invested my time and money in your work." -Ben Holtzman


"Excellent course! Mosh has a brilliant style and all of his courses are well presented and very high quality. This course was no exception and I learnt a lot from it." -Steven Barnett


"It´s a pleasure following the lessons, It´s like a good book, you always want to read another chapter. This is not siimple a course of EF, it goes further, gives a very good explanation of Linq and the most brilliant description of Repository Pattern and Unity of work. Please keep doing courses. To be honest I believe that you should leave your work and spend the rest of your life teaching ;)." -Martin Suarez


"I'd taken a lot of video classes, and this is the best I'd taken. Very well explained, detailed and a good real life examples, lots of tips and more." -Oscar Vargas


"As always... Mosh nails it with his thorough explanations (without all the "I'm better than you vibe")." -Mike Loffland



100% MONEY-BACK GAUARANTEE

This course comes with a 30-day money back guarantee. If you're not happy, ask for a refund, all your money back, no questions asked.



Do you want to take your programming skills to the next level?

Join the other 6,500 happy students who have taken this course and start coding within minutes.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Mosh Hamedani

Hi! I'm Mosh, a software engineer with over 20 years of experience. I'm all about clear, concise, practical coding tutorials – no fluff, just the good stuff! My courses focus on real-world projects and the skills that will get you hired. I've helped millions of students transform their careers. Want to level up your skills? Check out my courses and get started.

icon
More courses by Mosh Hamedani

$22.99

Original price $149.9985% off

$17.99

Original price $124.9986% off

$16.99

Original price $109.9985% off

$19.99

Original price $129.9985% off

$19.99

Original price $124.9984% off

$14.99

Original price $94.9984% off

icon
More C# courses

$11.99

Original price $84.9986% off

$13.99

Original price $69.9980% off

$11.99

Original price $64.9982% off

$11.99

Original price $19.9940% off

$11.99

Original price $69.9983% off

$12.99

Original price $79.9984% off

icon
Reviews

4.5

14,943 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Aspire Solutions on 11/18/2025

the course was truly great at helping understand the concept of Entity frameworks and how to apply it, though i wish he would explain more or provide a document about what to try if certain packages don't install or if certain libraries cant be found as i spent a bulk of the time in this course trying to actually get the libraries and packages he mentioned.

By Sujit Prabhakaran on 2/7/2025

This course has saved me time to read 500 pg. books and tuition fees worth thousands of Indian Rupees. I believe completion of this course has given me an added skill and advantage in my job search. Finally, I like Udemy platform for being ad free and providing quality training at affordable price. One more thing I would like is to get a printed version of this course. I have been documenting the difficult parts of the course as I listen to it. So printed material would save me documentation time. Thank you Mosh Hamedani!

By Carlos Salgado Ladrero on 5/4/2022

A very well explained course, sprinkled with small nugets of wisdom. There are a few course authors at the same level of skill but none with his teaching chops. A recommended course to anyone who wants to learn not only how to use Entity Framework but any ORM because it is the only course that teaches the why. Useful with any persistence framework. Also you can use the course as a drinking game. One shot of your beverage of choice everytime he says "Beautiful!". Ha ha ha! Kidding!

By Amos Scott on 4/29/2020

Great course, very well structured, clear, concise and concepts clearly explained. Real-world software engineering experience is also shared. Yes there are newer versions of EF now released that are not covered here, but this course is still well worth it if you want a solid foundation in EF. Mosh is a great teacher. "Why not 5 stars then?!?" I hear you cry. "This is an outrage!!" I hear you shout angrily. Problem is that Mosh and his assistants no longer seem to be hanging out here and so sadly student's questions are not getting answers. I realise that the next version of EF is out, and perhaps a new course is in the offing, but still, if people be payin', then they should be payin' attention! Gripe over and I would still highly recommend this course! Thanks Moshie!

By Ruth Olmos Gonzalez on 3/9/2019

Muy buen curso y facil de seguir. Buen instructor, abarca todas las materias de Entity Framework en profundidad. A very good course and easy to follow. Good instructor. He speaks about all the subjects of Entity Framework deeply.

By Abhijeet Singh on 2/6/2019

This course was awesome at so many levels. Clear instructions, good examples, nice flow and comprehensive coverage. The best part of the course is the exercise files. That was one of the primary reasons for selecting this course over other Entity framework courses and I was surely not disappointed. The instructor has put effort into those exercises and it clearly shows. The hands-on experience you get from the exercises really helps in reinforcing the concepts.

By Kenan Kurda . on 6/1/2018

This is for sure very good course and the one of the best courses I have seen so far, abd I would definitely recomend to everyone. Thanks Mosh, You are Great Instructor, btw I have followed other courses provided by Mosh like C# Beginner/Intermediate and Advanced course, Unit Testing Entity Framework in Depth and Complete ASP.NET MVC. And each time I am coming back to watch the course or some topics in the course I am always amazed by the deep knowledge on subject of Instructor. Cheers, Kenan

By Lucas Lucero on 4/2/2018

Very ordered, clear, good explanation and practical course. I feel so comfortable with this author, I wasn't waste my time. I can apply every concept in a real world application, further, I'm motivated to take another one. In a nutshell, it's one of my mentor online teacher. I'm so proude to be able to find this kind of material, and finish it in 1 month of practices. My personal recomendation, I would like to have more excercise to practices in the next course I will take.

By Abraham Camhy on 12/24/2017

This is a fine overview and will give a basic understanding of some concepts. That said, this is very difficult material that needs to be explained more simply. Completing this course will not be enough to confidently build a database into your programs. It is a start. The course is oversold in its promise to teach this material in a simple way that results in being able to implement it. Also, the hardly ever answers the questions posted in the forum. The materials are incomplete. There are some references to materials that are not provided. Overall, just ok.

By Albert Carpena on 10/17/2017

Mosh is really the best author/instructor. He explained all the theories and terms that I can't understand in programming, especially in intermediate, advanced C# and in this course. As of this moment, I am not finished with this course yet, but I am really excited to watch my next step to become an excellent programmer; ASP.NET MVC 5!! It is very worth enrolling to his courses. All the examples are based on real world scenario, that is why I understand each and every one of them everytime. Thank you Mosh!

By Irwan Hamid on 8/22/2017

Very good for a beginner of SQL. However, seem that Mosh has: 1. nit briefly explain about tool that need to be downloaded. He just used it. 2. not briefly explain how to setup local database. You need to read somewhere. I guess it would make this course too long? 3. missed some resource he forget to add even after 2 years. If you used to Mosh courses, you maybe would say, Mosh make this course in a hurry. But at the end of this course, you would gain understanding! That is not to be challenged. Buy this course if you want to learn about Entity Framework. Read something about basic on Database + SQL before that - just basic reading.

By João Pedro Quaresma Campos on 7/26/2017

I think Mosh Hamedani its a great instructor. Because it makes the complex so simple. This says something about the breadth of his knowledge, like Einstein said: "If you can't explain it simply, you don't understand it well enough". Also the fact that programming is a passion for him greatly helps the teaching, because we can see the enthusiasm in his voice. Last but not least, I think Mosh Hamedani is humble and their goal seems to be much more helping students than making money. It is typical during classes to hear phrases such as "do not worry if you feel confused, I've been through it," or "the important thing is to make the application useful to the user and not add complexity to show off."

Showing 12 of 15 reviews

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 90 / 100