Entity Framework Core Load FULL Related Entities (Lazy Loading and Eager Loading)

Sdílet
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

Komentáře • 7

  • @Computerix
    @Computerix  Před rokem +3

    To ignore cycles :
    builder.Services.AddControllers().AddJsonOptions(x =>
    x.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles);

  • @vandenta3018
    @vandenta3018 Před rokem

    Thanks dude. The video was simple and short but gave me all the information I needed. I love it.

  • @melbymallqui314
    @melbymallqui314 Před 11 měsíci

    Very well explained!!

  • @mohammed.dev.99
    @mohammed.dev.99 Před 4 měsíci

    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.

  • @oznaria1
    @oznaria1 Před rokem +2

    Effective and very clear information❤