Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6964637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:56:59+00:00 2026-05-27T15:56:59+00:00

I am working with Entity Framework for a while but still have some black

  • 0

I am working with Entity Framework for a while but still have some “black holes” with how it is working under the hood. Even after reading couple of articles I’m not sure that my understanding is correct.


Lets start with questions:

  • How EF Include is working under the hood?
  • What are the differences between Join and Include?
  • Performance issues with Include (lazy loading vs eager loading, generated SQL queries, etc.)?
  • When I should use Join instead Include and vice versa?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:57:00+00:00Added an answer on May 27, 2026 at 3:57 pm

    When querying EF through linq or lambda expressions, you only need join statements if the underlying schema doesn’t provide FKs, and thus you don’t have navigation properties on the objects.

    On the other side, include (eager loading) and lazy loading can only work if there are FKs, because it uses the navigation properties.

    The underlying sql in both cases will use joins (as sql has no “navigation property” concept).

    As for performance, it depends on situations. Lazy loading vs Eager loading (so in FK scenario) can be a difficult choice.

    I usually go with lazy loading, useful when you have a large main result, but you need “join” data only of a few items of the whole resultset.

    If you know ahead that you’ll need the join data of the whole resultset, eager loading could be better for performance. I’d suggest to experiment and see for yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working with entity framework and ASP MVC for a while. I
I'm working with a small model in Entity Framework 4.0. I'd like to have
I have co-workers working on an Entity Framework model that changes structure (entities), over
Reading this MSDN article titled Working with ObjectSet (Entity Framework) It shows two examples
I have been working with NHibernate, LINQ to SQL, and Entity Framework for quite
I am going to start working with Entity framework but the problem is my
I am working with Entity Framework ... I have a database table for Patient
For some reason, navigation properties are not working on my Entity Framework model. From
While using the Entity Framework I have split it out to it's own project:
I am working with Entity Framework Code first. I have a simple model: public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.