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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:50:21+00:00 2026-05-14T14:50:21+00:00

I am little confused on designing WCf services with EF. When using WCf and

  • 0

I am little confused on designing WCf services with EF.

When using WCf and EF, where do we draw this line on what properties to return and what not to with the entity.

Here is my scenario

I have User.
Here are the relations.

User [1 to many] Address, User [ 1 to many] Email, User [ 1 to many] Phone

So now on the webform, on page1 I can edit user information. say I can edit few properties on the user entity and can also edit address, phone, email entities[ like add / delete and update any]

On page2, i can only update user properties and nothing related to navigation properties [ address, email, phone].

So when I return the User Entity [ OR DTO] should i be returning the navigation properties too? Or should the client make multiple calls to get navigation properites.
Also, how does it go with Save? Like should the client make multiple calls to save user and related entites or just one call to save the graph?

Lets say, if I just have a Save(User user) [ where user has all the related entities too]
both page1 and page2 will call save and pass me the user. but one page1 i will need a lot more information. but on page2 i just need the user primitive properties.

So my question is, where do we draw this line, how do we design theses services ? Is the WCF operation designed on the page and the fields it has ?

I am hoping i explained my problem well enough.

  • 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-14T14:50:21+00:00Added an answer on May 14, 2026 at 2:50 pm

    A classic problem – and one that doesn’t have one right answer – as always, it depends 🙂

    The core issue is: do I retrieve a user with all its associated information (potentially making it a really big chunk of data being transferred), or do I make multiple calls to retrieve certain parts of information when needed.

    I typically tend to lean more towards the second option – retrieve only as much data as you need right now – and go back for more if you really need it.

    In my experience, often times, users will only use certain aspects of your app – so in some cases, someone might need the core user info, plus addresses. In another, another user would require core user info and their permission – or whatever. Hardly ever will someone need all the available data.

    If you load “on demand”, you do incur a bit of additional overhead and time to load the data – but typically, you’re saving a lot of time transferring data that you don’t need in the end (when you load everything at once).

    Again: this is really just a “tendency” in my apps – I don’t have any cold hard numbers to back up my observations and prove that this is the right way to go. It’s just my own “best practice” for most cases.

    But again: getting this right borders on black magic 🙂 so you’ll probably just have to try one approach and see if it works (or not) and then potentially rearchitect your solution once you have some facts as to how your solution works in real life use.

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

Sidebar

Related Questions

I am a little confused here. I would like to do something like this:
I am a little confused with this matter. I am designing an ORM class
I'm a little confused by some PHP syntax I've come across. Here is an
Im a little confused with this short hand. Does this allow me to acesss
I`m a little confused about this point. Everything that I found in books, blogs,
I'm a little confused about how the standard library will behave now that Python
I am a little confused by the multitude of ways in which you can
I am a little confused as to the definition of classes as Models or
Im a little confused over how to use the .NET Trace and Debug classes.
I am getting a little confused and need some help please. Take these two

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.