Entity Framework Core


Entity Framework Core

Authors: Julie Lerman, Kevin Dockx, Michael Perry

Entity Framework Core (EF Core) is Microsoft's object-relational mapper (O/RM) that can help you quickly build data access layers for your applications. In this path, you will... Read more

What you will learn

  • Creating data models in EF Core
  • Interacting with data models in EF Core
  • Querying and saving data
  • Mapping relationships between objects
  • Using lazy loading
  • Using value converters to map .NET Types and enums
  • Using EF Core with database views
  • Managing your database using migrations


Familiarity with the C# language and basic relational database skills


This set of courses gets you up and running with EF Core by covering the most common scenarios you encounter with EF Core. You will build a data model with EF Core, see how to query and save data and how to deal with complex mappings that come up when building an application.

Entity Framework Core: Getting Started

by Julie Lerman

Dec 15, 2020 / 4h 23m

4h 23m

Start Course

In this course, Entity Framework Core: Getting Started, you’ll learn to work with data in your .NET applications. First, you’ll explore the benefits of using Microsoft’s ORM, EF Core 5, to relieve you of the commonplace tasks of retrieving and storing data in your software. Next, you’ll discover how to ensure that EF Core understands how the classes and relationships in your software map to a database schema. Finally, you’ll learn how to have EF Core retrieve and persist data in your software, leveraging the myriad capabilities that allow EF Core to comprehend your complex software models. When you’re finished with this course, you’ll have the skills and knowledge of Entity Framework Core needed to fluidly persist data from your software into your data stores.

Table of contents
  1. Course Overview
  2. Building Your First Application using EF Core
  3. Controlling Database Creation and Schema
  4. Defining Relationships in Your Model
  5. Interacting with Your EF Core Data Model
  6. Interacting with Related Data
  7. Working with Views and Stored Procedures and Raw SQL
  8. Using EF Core with ASP.NET Core
  9. Automated Testing with EF Core

Entity Framework Core 2: Mappings

by Julie Lerman

May 16, 2018 / 1h 58m

1h 58m

Start Course

Entity Framework Core 2 is the latest version of Microsoft’s modern OR/M data access platform. In this course, Entity Framework Core 2: Mappings, you’ll explore how to efficiently utilize the latest version of Entity Framework Core to prepare yourself to work on production software. First, you’ll learn how to best build and interact with many-to-many and one-to-one relationships. Next, you'll discover how to take advantage of additional mappings such as the new shadow properties, scalar function support, and owned entities. Finally, you'll go over how to work with database views. By the end of this course, you'll be able to elevate your skill set and provide yourself with the tools you need to build your production application.

Table of contents
  1. Course Overview
  2. Getting to Know the Sample Model
  3. Mapping and Interacting with Many-to-many Relationships
  4. Mapping and Interacting with One-to-one Relationships
  5. Using Shadow Properties to Persist Data You Don’t Want in Your Entities
  6. Leveraging the New Owned Type Feature for Value Objects and Complex Types
  7. Mapping Database Scalar Functions
  8. Working with Database Views


EF Core contains many new features designed to help you deal with advanced scenarios, and that is what you will learn in this section. This includes tapping into the EF Core pipeline with tracking events, using query types to access database views and using value converters to intercept and process values as they are read out of the database.

Entity Framework Core 2.1: What's New Playbook

by Julie Lerman

Oct 9, 2018 / 3h 22m

3h 22m

Start Course

Every application uses data, and a thorough knowledge of Entity Framework Core is key to building successful .NET and .NET Core applications. In this course, Entity Framework Core 2.1: What's New Playbook, you’ll learn how to take full advantage of the most impactful features added to EF Core 2 in this update. First, you’ll learn how to use some returning features that work quite differently than they did in EF6, for example, data seeding, lazy loading and GroupBy queries. Next, you’ll explore some completely new features such as view mapping, change tracking event handlers, and type conversions. Finally, you’ll discover some of the small changes that can have a big impact on your code. When you’re finished with this course, you’ll have a deep knowledge of these important features in EF Core 2.1, enhancing your capability to create efficient and intelligent data access logic in your software.

Table of contents
  1. Course Overview
  2. Setting the Stage for the EF Core 2.1 Release
  3. Seeding the Database and In-Memory Test Provider
  4. Exerting More Control Over Saving with System Transactions
  5. Tapping into the Pipeline with New Tracking Events
  6. Lazy Loading With and Without Proxies
  7. Mapping More .NET Types and Enums with Value Conversions
  8. Transferring the GroupBy Effort to the Server
  9. Introducing Query Types for More Flexible Data Models
  10. Benefiting from Minor Changes with Major Impact

Testing with EF Core

by Kevin Dockx

Jun 14, 2019 / 1h 12m

1h 12m

Start Course

In this course, Testing with EF Core, you will learn how EF Core can help with testing code that relies on calls into your database. First, you will learn about different ways of testing your application. Next, you will discover how in-memory database providers like InMemory and SQLite can help with improving your tests. Finally, you will explore how to isolate your tests and how to enhance Test Explorer with logs coming from EF Core. When you're finished with this course, you will have the skills and knowledge of EF Core needed to improve your tests and thus the reliability of your code.

Table of contents
  1. Course Overview
  2. Getting Started with EF Core Testing
  3. Unit Testing Your Code with EF Core InMemory
  4. Improving the Reliability of EF Core Testing with SQLite


EF Core contains the capability to manage your database schema from code, and in this segment, you will do a deep dive on EF Migrations, the technology behind this capability.

Entity Framework Core 2.1 Migrations: Fundamentals

by Michael Perry

Jan 9, 2019 / 2h 4m

2h 4m

Start Course

Entity Framework Core Migrations are Microsoft's recommended way of managing application databases. They are extremely powerful, but you have to understand how to use them.

In this course, Entity Framework Core 2.1 Migrations: Fundamentals, you will learn the foundations of developing and deploying an enterprise application using migrations. First, you will learn how to create, test, and organize migrations. Next, you will discover how to resolve the conflicts that will inevitably arise. Finally, you will explore different methods of deploying database changes to higher environments, and determine which is most appropriate for going to production.

When you are finished with this course, you will have the skills and knowledge of EF Core Migrations needed to build and deploy enterprise applications.

Table of contents
  1. Course Overview
  2. Working with Migrations
  3. Separating Application Layers
  4. Resolving Conflicts
  5. Going to Production
Offer Code *
Email * First name * Last name *
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By providing my phone number to Pluralsight and toggling this feature on, I agree and acknowledge that Pluralsight may use that number to contact me for marketing purposes, including using autodialed or pre-recorded calls and text messages. I understand that consent is not required as a condition of purchase from Pluralsight.

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit