هر برنامه ای از دادهها استفاده میکند و دانش کاملی از Entity Framework Core برای ساختن برنامههای موفق NET. و NET Core. مهم است. در دوره ویدیویی Entity Framework Core 2.1: What's New Playbook موسسه Pluralsight که توسط Julie Lerman تدریس شده است، یاد خواهید گرفت که چگونه در این به روزرسانی از تمام ویژگیهای تأثیرگذار اضافه شده به EF Core 2 به طور کامل استفاده کنید.
در این دوره، ابتدا نحوه استفاده از بعضی از قابلیتهای بازگردانده شده که کاملا متفاوت از آنچه در EF 6 انجام میدادند را یاد میگیرید از جمله data seeding، lazy loading و کوئریهای GroupBy. در ادامه، برخی از قابلیتهای کاملاً جدید مانند view mapping، event handlerهای ردیابی تغییرات و تبدیل انواع را بررسی خواهید کرد. سرانجام، برخی از تغییرات کوچک را که میتوانند تأثیر زیادی روی کد شما داشته باشند را یاد خواهید گرفت. پس از اتمام این دوره، دانش عمیقی در مورد این قابلیتهای مهم در EF Core 2.1 کسب خواهید کرد و توانایی خود را در ایجاد منطق دسترسی به دادهها کارآمد و هوشمند را در نرم افزار خود ارتقا میدهید.
فیلم آموزشی «Entity Framework Core 2.1: What's New Playbook» موسسه پلورال سایت که توسط Julie Lerman تدریس شده است، دارای زیرنویس انگلیسی است.
Table of Contents:
Course Overview
- Course Overview
Setting the Stage for the EF Core 2.1 Release
- Introduction and Overview
- Understanding EF Core Version Numbers
- Relating the EF Core Vision with EF6 Parity
- Setting Expectations for This Course
Seeding the Database and In-Memory Test Provider
- Introduction and Overview
- Introducing a New Way to Seed Data
- Seeding Your First Row of Data
- Understanding How HasData Treats Key Values
- Seeding Related Data
- Seeding with Anonymous Types When Properties Aren’t Exposed
- Seeding Types with Client-generated Values
- Using Anonymous Types to Solve Some More Seeding Problems
- Seeding InMemory Test Databases at Runtime
- Review and Resources
Exerting More Control Over Saving with System Transactions
- Introduction and Overview
- Understanding Transactions in EF Core
- Looking at the Starting Point Solution
- Observing EF Core’s Existing Transaction Behavior
- Simplifying the Customized Transaction with TransactionScope
- Review and Resources
Tapping into the Pipeline with New Tracking Events
- Introduction and Overview
- Introducing the Tracked and StateChanged Events
- Creating Tracked and StateChanged EventHandlers in the DbContext
- Looking at the Starting Point Solution
- Watching the Event Handlers in Action
- Exploring Some More Event Behavior
- Tying the Events to Specific DbContext Instances
- Relaying Events with the .NET Core ILoggerFactory
- Review and Resources
Lazy Loading With and Without Proxies
- Introduction and Overview
- The Return of Lazy Loading
- Technical Setup
- Examining the Starting Point of Our Project
- Implementing Lazy Loading with Proxies
- Watching the Lazy Loading in the SQL Logs
- Making Owned Entity Properties Virtual When Using Lazy Loading Proxies
- Noting Important Details About Lazy Loading Proxies
- Avoiding Lazy Loading and Proxies in UWP, Xamarin, & Web Apps
- Why You May Want to Use Proxyless Lazy Loading
- Implementing Lazy Loading without Proxies
- Enabling Lazy Loading in Entities without Proxies or References to EF Core
- Review and Resources
Mapping More .NET Types and Enums with Value Conversions
- Introduction and Overview
- Why Value Conversions?
- Using the Built-in Value Converters
- Storing Enums as Strings
- Converting Types on the Fly
- Creating Your Own ValueConverters
- Review and Resources
Transferring the GroupBy Effort to the Server
- Introduction and Overview
- Looking at the Starting Point Solution
- Looking at Simple GroupBy and the SQL Generated by EF Core 2.0 and 2.1
- Checking Out Some More GroupBy Patterns
- Being Aware of Currently Unsupported GroupBy Patterns
- Review and Resources
Introducing Query Types for More Flexible Data Models
- Introduction and Overview
- Enabling New Patterns with Query Types
- Looking at the Starting Point Solution
- Mapping to Database Views
- Handling Unconventional Query Mappings
- Defining Queries in the Data Model
- Pre-defining Raw SQL Queries
- Capturing FromSql Results
- Review and Resources
Benefiting from Minor Changes with Major Impact
- Introduction and Overview
- Introducing a Minimum for Batched Commands
- Noting a Change to Column Ordering
- Simplifying Access to the EF Core CLI
- Getting Compiler Warnings on Risky SQL with a Built-in Code Analyzer
- Materializing Entities with Class Constructors That Actually Have Parameters
- Review and Resources