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
Redacted News
38 minutes agoElection Day Disaster for Trump? Europe preps for WAR against Russia, Israel's PR failure | Redacted
12,252 watching -
16:44
Russell Brand
1 hour agoAmerica’s Hidden Royalty
1.3K3 -
2:05:29
The Quartering
3 hours agoEscape From New York, Harvard Bombers Caught, Trump DEFIES Court On SNAP, Bomb Threat On Plane!
95.9K47 -
LIVE
StoneMountain64
2 hours agoBattlefield REDSEC leveling guns for attachments
276 watching -
LIVE
Pop Culture Crisis
1 hour agoCoca-Cola's WAR ON CHRISTMAS, Movie Press Tour CRINGE, Gen Z HATES Gen Z | Ep, 949
569 watching -
16:30
Clintonjaws
17 hours ago $4.31 earned'The View's' Producer Stops Show & Forces Whoopie To Correct Lie
5.43K4 -
1:10:24
Steve-O's Wild Ride! Podcast
5 days ago $0.38 earnedMatt McCusker Makes Steve-O Nervous | Wild Ride #272
2.84K1 -
17:09
Bearing
9 hours agoHasan Goes NUCLEAR On Chat ☢️ ROASTED By JD Vance Over Dog Allegations 🚨
6.86K27 -
LIVE
The HotSeat With Todd Spears
1 hour agoEP 203: The Military "Whistleblower"
667 watching -
LIVE
The Nunn Report - w/ Dan Nunn
1 hour ago[Ep 784] Election 2025: NYC is Screwed | Tatum Calls Out Kirk Conspiracists | Guest: Sam Anthony
148 watching