Skip to content
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

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

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

$149.99

$17.99

$109.99

$19.99

$124.99

$94.99

icon
More C# courses

$84.99

$13.99

$64.99

$19.99

$12.99

$84.99

icon
Reviews

4.4

14,884 ratings on Udemy

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

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 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."

By Tahir Mumtaz on 1/8/2016

This is seconds course I have taken by Mosh and my review is similar to the one before. After taking the intermediate C# course which I was really impressed by I decided to purchase this course. Again very high quality of content, easy to follow and well broken down. Mosh is an amazing instructor (one of the best the web) he breaks down every topic in a very easy way, the explanations are clear and concise and the content is very well structured. The best thing about the course is how the instructor gives examples of real-world scenarios. The best courses are those where the instructor teaches from their own experience and how things are done in industry. This course certainly does that. The code samples are great and the exercises cement the knowledge gained in the video. If there is one thing I would want more from the course and that would be more exercises because I really enjoyed completing them. It is very rewarding to take a course and then to practice what is learned so more exercises would definitely be the way forward in the future. Thank you Mosh for delivering yet another amazing course. As always I will be looking forward to any other content you put out there. Eagerly awaiting your new MVC course.

Showing all 10 reviews on CourseDuck

Read all 14,884 reviews on Udemy

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 : 88 / 100