Entity Framework Core 2.1: What's New Playbook
The 2.1 update to EF Core brings over 500 changes since EF Core 2.0. In this course, you’ll learn how to take full advantage of the most impactful new features like view mapping, server-side GroupBy processing, seeding and more.
What you'll learn
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
- Introduction and Overview 2m
- Introducing a New Way to Seed Data 2m
- Seeding Your First Row of Data 4m
- Understanding How HasData Treats Key Values 3m
- Seeding Related Data 3m
- Seeding with Anonymous Types When Properties Aren’t Exposed 3m
- Seeding Types with Client-generated Values 3m
- Using Anonymous Types to Solve Some More Seeding Problems 4m
- Seeding InMemory Test Databases at Runtime 5m
- Review and Resources 2m
- Introduction and Overview 1m
- Introducing the Tracked and StateChanged Events 2m
- Creating Tracked and StateChanged EventHandlers in the DbContext 2m
- Looking at the Starting Point Solution 1m
- Watching the Event Handlers in Action 4m
- Exploring Some More Event Behavior 2m
- Tying the Events to Specific DbContext Instances 3m
- Relaying Events with the .NET Core ILoggerFactory 5m
- Review and Resources 2m
- Introduction and Overview 2m
- The Return of Lazy Loading 1m
- Technical Setup 1m
- Examining the Starting Point of Our Project 3m
- Implementing Lazy Loading with Proxies 5m
- Watching the Lazy Loading in the SQL Logs 2m
- Making Owned Entity Properties Virtual When Using Lazy Loading Proxies 2m
- Noting Important Details About Lazy Loading Proxies 3m
- Avoiding Lazy Loading and Proxies in UWP, Xamarin, & Web Apps 2m
- Why You May Want to Use Proxyless Lazy Loading 3m
- Implementing Lazy Loading without Proxies 3m
- Enabling Lazy Loading in Entities without Proxies or References to EF Core 2m
- Review and Resources 2m
- Introduction and Overview 1m
- Enabling New Patterns with Query Types 3m
- Looking at the Starting Point Solution 2m
- Mapping to Database Views 5m
- Handling Unconventional Query Mappings 3m
- Defining Queries in the Data Model 3m
- Pre-defining Raw SQL Queries 3m
- Capturing FromSql Results 3m
- Review and Resources 2m
- Introduction and Overview 1m
- Introducing a Minimum for Batched Commands 4m
- Noting a Change to Column Ordering 2m
- Simplifying Access to the EF Core CLI 3m
- Getting Compiler Warnings on Risky SQL with a Built-in Code Analyzer 7m
- Materializing Entities with Class Constructors That Actually Have Parameters 8m
- Review and Resources 4m