Entity Framework in the Enterprise

Entity Framework is the most widely-used ORM for .NET software development. This course will show you how to incorporate Entity Framework into your advanced software architecture.
Course info
Rating
(166)
Level
Intermediate
Updated
Sep 23, 2016
Duration
4h 42m
Table of contents
Course Overview
Architecting a Data Layer
Understanding EF Encapsulation and the Great Repository Debates
Implementing Encapsulation Patterns with Entity Framework
Managing Complex Domains and Data Models
Refactoring into Bounded Contexts: A Walkthrough
Handling the State of Disconnected Graphs
Mapping DDD Domain Models with EF
Testing Your Apps When Entity Framework Is Involved
Description
Course info
Rating
(166)
Level
Intermediate
Updated
Sep 23, 2016
Duration
4h 42m
Description

Have you reached the limitation of the introductory lessons on Entity Framework when trying to implement EF into your real world business solutions? In this course, Entity Framework in the Enterprise, you will learn advanced patterns for incorporating Entity Framework into enterprise level architecture. First, you'll learn patterns for encapsulating your EF logic and how to choose which best suits your needs depending on what you need to accomplish. Next, discover how to align your EF code with the many beneficial patterns, from Domain-Driven Design in your software from breaking data models apart for Bounded Contexts, to persisting tightly-controlled aggregates. Finally, testing code without hitting the database gets easier with the test mock support introduced in EF6. You'll also get to see how to mock a variety of EF database interactions that are triggered by your business logic. When you're finished with this advanced Entity Framework course, you'll not only better understand using EF in your real-world software, but you may gain some general software architecture wisdom along the way. Software required: Visual Studio 2013 or higher, Entity Framework 6 or higher.

About the author
About the author

Julie Lerman is a Microsoft MVP, .NET mentor and consultant who lives in the hills of Vermont. You can find Julie presenting on data access and other Microsoft .NET topics at user groups and conferences around the world. Julie is the author of the highly acclaimed "Programming Entity Framework (with a second edition coming soon) and authors the MSDN Magazine Data Points column.

More from the author
Entity Framework Core 2.1: What's New Playbook
Intermediate
3h 22m
Oct 9, 2018
Entity Framework Core 2: Mappings
Intermediate
1h 59m
May 16, 2018
Entity Framework Core 2: Getting Started
Beginner
2h 42m
Feb 6, 2018
More courses by Julie Lerman
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Welcome to Pluralsight, my name is Julie Lerman and you may know me as one of the most recognized authorities in the world on Entity Framework, Microsoft's data access platform for. NET developers. I'm so excited to share my experience with you as you prepare to incorporate entity framework into your real world software solutions. Four years ago I published a course called Entity Framework in the Enterprise, and so many developers continue to watch that course. But since then, entity framework has changed dramatically, and my experience and my thinking about software architecture, and how entity framework fits in, have also evolved. It was really time to recreate the course and share what I've learned since then. In this course you'll go beyond patterns you may learn from introduction demos. As you implement entity framework into your advanced software architecture, I'll help you gain a deeper understanding of the options for encapsulating our entity framework logic. Working with many clients over the years, I've helped them rein in daunting projects with patterns I've learned from domain driven design. I'll share with you this accumulated experience learned as we've incorporated entity framework into well architected solutions. You'll see entity framework 6 throughout this course, but the concepts and patterns you learn will apply to the upcoming entity framework core as well. Before embarking on this course, you should be familiar with entity framework. So at the beginning of this course, I provide a list of other Pluralsight courses you might want to watch before going further. I hope you'll join me on this journey to learn how to best fit entity framework in your software with Entity Framework in the Enterprise.

Architecting a Data Layer
Hello this is Julie Lerman, welcome to Entity Framework in the Enterprise. Entity framework is Microsoft's. NET API for interacting with a variety of relational databases. This course will provide you with guidance for incorporating entity framework into your real world software. I've created many entity framework courses for Pluralsight, where my goal was for you to learn the ins and outs of using various specific features of entity framework. And I use simplistic demos so you could focus on the task at hand and not worry about other code that's in the way. With those essentials in hand, you should be ready to see how to use entity framework in the type of business software that you're more likely building every day. In this course I'm going to do just that, help you understand where entity framework fits into your enterprise applications and some patterns you should be aware of when doing so.

Understanding EF Encapsulation and the Great Repository Debates
Hello this is Julie Lerman, welcome to the next module of Entity Framework in the Enterprise. In this module you'll learn more about separating out your entity framework code to help you on your path to integrating entity framework into your real world, well architected software. I'll also address the debates about whether you should be using repositories with entity framework, as well as those around returning IQueryables or IEnumerables from your encapsulated code.

Implementing Encapsulation Patterns with Entity Framework
Hello this is Julie Lerman, welcome back to Entity Framework in the Enterprise. This module will focus on implementing encapsulation patterns with entity framework. In the last module you learned about using generic repositories for basic CRUD work versus using more finely tuned classes that can handle more complex persistence needs. This module will focus on the code.

Managing Complex Domains and Data Models
Hello this is Julie Lerman, welcome back to Entity Framework in the Enterprise. In the first module of this course I talked about some of the problems teams encounter when creating one big data model to use throughout their software. This module will drill into a critical concept from domain driven design called bounded context and show you how you can leverage that pattern to design smaller, more focused data models.

Refactoring into Bounded Contexts: A Walkthrough
Hello, this is Julie Lerman, welcome back to Entity Framework in the Enterprise. In this module I'm going to walkthrough step-by-step how I refactor the solution into the multiple bounded contexts that you saw in the previous module.

Handling the State of Disconnected Graphs
Hello this is Julie Lerman, welcome back to Entity Framework in the Enterprise. This module we'll focus on handling the state of disconnected graphs.

Mapping DDD Domain Models with EF
Hello, this is Julie Lerman. Welcome back to Entity Framework in the Enterprise. In the past two modules we focused on domain-driven design's bounded context. In this module you'll get a chance to look at a number of the other DDD patterns and how they relate to Entity Framework's mapping capabilities.

Testing Your Apps When Entity Framework Is Involved
Hello, this is Julie Lerman. Welcome back to Entity Framework in the Enterprise. In this final module of the course, I'll take you back to some of the automated tests I built along the way and show you how to use test mocks to avoid hitting the database in cases when it just doesn't make sense to do so.