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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:52:37+00:00 2026-05-24T12:52:37+00:00

I am using WCF RIA Services in combination with the Entity Framework 4.0. To

  • 0

I am using WCF RIA Services in combination with the Entity Framework 4.0.

To ensure that related objects make it safely to the client, I need to first include them using the ObjectQuery(Of T).Include or DbSet(Of TResult).Include methods within my DomainService. I also need to add the IncludeAttribute to the navigation properties within metadata classes.

I make a single decision to have a related object transferred to the client and am forced to make two changes to implement it which seems a bit redundant.

I am considering making modifications to the T4 templates so that all navigation properties are automatically decorated with the IncludeAttribute.

I was a little worried about entities that were left over from previous requests being unintentionally sent to the client but my understanding is that the DomainService is stateless which should mean that this will not be the case, right?

The point of the “DomainService” name is that it is the stateless
object that represents a specific domain that is characteristic of my
application.

Another approach that I have seen was to automatically apply Include attributes to any metadata files within the project. I would still need to create the metadata files though.

Are there any other dangers that I am not seeing? Is there a better way to achieve the same effect?

  • 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-24T12:52:37+00:00Added an answer on May 24, 2026 at 12:52 pm

    I modified the EDMX T4 template to apply the IncludeAttribute automatically and it is working as expected.

    One advantage of manually applying the attributes that I identified along the way was that you are able to control the volume of code that is generated on the client. Entities that are used only on the server can be excluded.

    This was not an issue in my case.

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

Sidebar

Related Questions

I have a Silverlight 3 app using WCF RIA Services and Entity Framework for
I am using SL4, MVVM Toolkit, Entity Framework 4 & WCF RIA Services. I
I am using SL 4, WCF RIA Services against Entity Framework 4.0. I have
I'm using WCF RIA Services and I have a domain service method that returns
I've used WCF RIA services with Entity Framework to build a simple application which
Using WCF RIA Services, how is it possible to determine if a record is
In a Silverlight 4 proj i'm using WCF RIA services, MVVM principles and EF
I am developing a silverlight 3 application using WCF RIA services. I am using
I'm using the WCF RIA Services Beta with Silverlight 3.0 and I want to
Hi i am using WCF RIA services class in Silverlight. I do have a

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.