Entity Framework Core Load FULL Related Entities (Lazy Loading and Eager Loading)
Vložit
- čas přidán 5. 07. 2024
- You will learn how to return the fully loaded objects (including the related data from different tables)
EF core with Database first approach : • ASP.NET Core - Scaffol...
EF core with Code first approach : • ASP.NET Core 6.0 Code ...
Timestamps:
------------
0:00- Introduction
0:50- Explaining the project
2:22- The default behavior
3:14- Lazy Loading to load full related data
8:50- Lazy Loading steps summary
9:55- Eager Loading to load full related data
13:30- Outro
To ignore cycles :
builder.Services.AddControllers().AddJsonOptions(x =>
x.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles);
Thanks dude. The video was simple and short but gave me all the information I needed. I love it.
Very well explained!!
I'm glad you liked it !
Great video will explained ❤, but I'm wondering what "Virtual" keywork dose to the navigation properties in Lazy Loading (is it an inheritance stuff?), btw I'm new to backend and EF core I will be very happy if you have any references that I can use to understand these topics.
Effective and very clear information❤
Thanks for the feedback!