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 7939755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:12:03+00:00 2026-06-03T23:12:03+00:00

Do I have to explicitly add the [Include] attribute for any entities that has

  • 0

Do I have to explicitly add the [Include] attribute for any entities that has ICollection property so that result LoadOperation callback will populate my entity with its collection?

Querying the data from the Service is fine, but when being passed to the LoadOperation it doesn’t add the collection of a certain entity. Does it have something to do with serialization/deserialization from the service message?

If yes, what is the reason why? I have used EF with DbContext.Includes in WPF but I did not have any issues with my T4 template generated items when I wanted to query my entity’s collection.

  • 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-03T23:12:04+00:00Added an answer on June 3, 2026 at 11:12 pm

    The [Include] attribute is required to advise the WCF marshaller to serialize related entities. Specifically, MSDN advises

    this attribute specifies that the association should be part of any
    code-generated client entities, and that any related entities should
    be included when serializing results to the client.

    You will still need to use the query.Include() on your DbContext to retrieve the related data from the database.

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

Sidebar

Related Questions

I need to know because I have to explicitly close some remote resources that
Does calling a destructor of an boost::lock object explicitly have any consequence at all?
I have a Panel that I'm setting visible=true explicitly. The debugger passes over that
I have an app that I want to be launchable either explicitly when tapped
I'm using the CodeIgniter PHP framework. I have a simple form that has an
I have a class that add extra information about a column for linq2sql (see
I have many cookie-cutter spring beans and don't want to explicitly define each one
Can I call constructor explicitly, without using new , if I already have a
Should I need to have explicit custom ID attribute as PK for each of
I'm attempting to add a property in a partial class to an entity framework

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.