Entity Framework Core Part 4

preview_player
Показать описание
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.

Episode list:

Part 4: Querying Related Data and Using Projections (this episode).

Рекомендации по теме
Комментарии
Автор

Include() will produce Left Join if HasOptional() and Inner Join if HasRequired().

razorUkraine
Автор

For some reason Part 5 was on my recommended feed before Part 4. I thought you were following the .NET Core versioning for a second :)

LucasHutyler
Автор

This is a great series so far! Brilliant! One small suggestion to the interviewer. After interviewing this person on EF who is more Architect level aka high level understanding can you drill down the hierarchy and get some hardcore detail oriented coders who have a good mix of understanding and memory aka knowledge, memorization, low level information. Perfect high level introduction but for the next level drill down the hierarchy at EF department at Microsoft.

AkshaySrinivasan
Автор

No wonder Philip's such a good developer - time never passes in his house; it's always ten past six!

pw.
Автор

Great video, very help I watch 4 out of 5 so far, thank you for sharing them.

PrimephotoStudio
Автор

@2:47 - might be nice to back up and show an actual object model here so a learner could see what the relationships look like. It also might be nice to know the dangers of circular references and any constraints or limitations on the number of relationships in the object graph. It also might be nice to learn how to deal with "fixups", which is where you fix your back references in object models that do have circular references (the customer has a list of orders, and each of those orders has a reference to their originating customer). I get that these might be considered advanced, but you at least need to know that you're limited to not having those very early in your learning. And the caveat should be made that this isn't best practices strictly from an OO perspective.

dougb
Автор

What font was this supposed to be? I thought he said Cascadia, but that's not getting me all the special not equals and stuff

MZ-uvsr
Автор

Are you using ReSharper extension in VS? It's nice to see returning type without hovering.

adiscivgin
Автор

why using the discard character ( _ ) in the queries??

Time