Premium Only Content

Entity Framework Core Part 4: Querying Related Data and Using Projections by Microsoft
In this episode, Robert is joined by Phil Japikse for part 4 of a 5 part series on Entity Framework Core. Aimed at folks new to EF Core, Phil shows how to start with an existing SQL Server database, create entities/objects for each table and then how to perform basic CRUD operations on the data.
Querying related data is simple in EF Core. In this episode we demonstrate creating joins in our LINQ queries with Include and ThenInclude. We also discuss how you use projections to shape the queried data into other objects, anonymous or strongly typed.
Find the sample code at https://github.com/skimedic/presentat....
Learn more about Entity Framework Core at https://aka.ms/vstefcoredocs.
Episode list:
Part 1: Working with Existing Databases. We scaffold the DbContext and the Entities from the Northwind Database, discuss navigation properties and relationships.
Part 2: Change Tracking. Change Tracking is one of the most compelling reasons to use an object-relational-mapper (ORM) like EF Core. In this episode we discuss how the change tracker works, see it in action, as well as load data outside of the change tracker.
Part 3: Basic Queries. This episode covers querying data using EF Core. We discuss the basics of Where clauses, retrieving single items or lists of items, as well as when queries actually execute.
Part 4: Querying Related Data and Using Projections (this episode).
Part 5: Putting the CUD into CRUD. Wrapping up our starter series on EF Core, this episode covers adding, updating, and deleting data.
----------------------------------------------------
Follow me @everse for more Technology and Gaming Updates!
### FIND THE BEST FREELANCE JOBS ###
FREELANCER: https://www.freelancer.com/get/emmanverz?f=give
FIVERR: https://www.fiverr.com/pe/moyegR
### CRYPTOCURRENCY EXCHANGE / TRADING ###
BINANCE: https://www.binance.com/en/activity/referral-entry/CPA?ref=CPA_00P8Q8YM46
-
LIVE
TimcastIRL
2 hours agoTrump Admin Hints At CRIMINAL CHARGES For Fauci In BOMBSHELL Report w/Angry Cops | Timcast IRL
32,023 watching -
3:47:23
Nerdrotic
6 hours ago $18.66 earnedFantastic 4 HER! Daredevil BORE Again SUCKS! Disney Star Wars is DESPERATE | FNT Vegas 350
95K11 -
LIVE
MyronGainesX
20 hours ago $10.78 earnedFormer Fed Explains FSU Shooting, Charlie Kirk vs Groyper Debate!
2,229 watching -
LIVE
Man in America
6 hours agoEvidence of Highly Advanced Ancient Civilizations Is Being Hidden — But WHY!? w/ Jay Anderson
768 watching -
LIVE
IsaacButterfield
4 hours agoKaty Perry in Space?! Trans Women Law Controversy & Lizzo's Weight Loss Shocks Fans!
191 watching -
LIVE
I_Came_With_Fire_Podcast
9 hours agoHOUTHIS & CHINA | MURDERER MERCH STORE | TRUMP SICK OF WAITING
128 watching -
LIVE
VapinGamers
1 hour ago $0.17 earnedFortnite Friday - Game Night with the Family - !brian !rumbot
310 watching -
53:30
Sarah Westall
3 hours agoLingering IRA Scandal, Central Banker’s Criminal Dilemma and the Silver Squeeze w/ Andy Schectman
26.9K2 -
1:10:36
Edge of Wonder
6 hours agoWhite House: ‘We Can Manipulate Time and Space’
29.2K5 -
LIVE
ZWOGs
8 hours ago🔴LIVE IN 1440p! - Hunt: Showdown, Schedule 1, TARKOV, GTAV RP!! | Dwindle Digby | - Come Hang Out!
133 watching