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

  • SEARCH
  • Home
  • 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 8314125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:43:08+00:00 2026-06-08T20:43:08+00:00

How many nested projections can be used with .Include() in the Entity Framework? For

  • 0

How many nested projections can be used with .Include() in the Entity Framework?

For example:

Class A has a List of Class B’s, which has a list of Class C’s, which has a list of Class D’s, etc.

query.Include( a => a.BList.Select( b => b.Clist.Select( c => c.DList.Select(...) ) ) );

How far can these go?

  • 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-06-08T20:43:14+00:00Added an answer on June 8, 2026 at 8:43 pm

    MSSQL – As Many as you want

    You can have as many nested projections as you wish when using Entity Framework with a MSSQL database. The query is formed by the System.Data.SqlClient when using MSSQL.


    MySQL – Only 2

    However, you can only use 2 projections before you begin to receive logical errors when using Entity Framework with MySQL. The MySql provider MySql.Data.MySqlClient has a bug where it will begin to produce failed joins after two projections. This bug was posted to Oracle, but never fixed.

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

Sidebar

Related Questions

I have a nested unordered list representing a tree hierarchy. There can be many
I have an HTML page that has many nested tables, for example table for
I have a Forum model, whose instances can have many nested forums: class Forum
I'm way buried in many nested levels of css, and I can't tell which
How would I show one of many nested objects in the index view class
I am trying to create nested routes for a project that has many boards.
I have a large class with many nested subclasses of different types as follows:
I am working on a code base that has many modules nested 4 or
I've got an asp:DataGrid which has an asp:Gridview within it and this has many
I have some sophisticated query (just select with many nested joins and subqueries). I've

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.