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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:43:26+00:00 2026-05-16T17:43:26+00:00

Need some help or some advice with entity framework v4. As you already know,

  • 0

Need some help or some advice with entity framework v4.

As you already know, EF v4 does not support lazy loading of scalar properties. If I have some entity object for example Order in model with many scalar properties, some of them expensive to load from DB, like attached file for example.

As I found later, it is possible to move these expensive properties to another entity for example Order1 and remap them to DB table. So original DB table will be mapped to 2 entities – Order – with properties ID and Name and Order1 – with all others.

What I need to do? In User Interface I will have a ListBox filled with entity Order (ID – Name of all orders) on left side and all other expensive properties of Order1 on right side for clicked order in listbox. Properties from Order1 lazy loaded, and with working savechanges, delete objects etc … .

How to make business object for order as entities are separated and how to setup with wpf binding?

thanks

  • 1 1 Answer
  • 2 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-16T17:43:26+00:00Added an answer on May 16, 2026 at 5:43 pm

    Having 2 models complicates your program, and can be a source of bugs. I would rather use a single model and then selectivily load items as I needed them.

    I meant use only one entity framework model. Looks like you are doing this already. What you need to do in to explicitly load data when you need it, see http://msdn.microsoft.com/en-us/library/bb896249.aspx.

    This is actually a design desision from MS, to force you to be aware of which data you need at which times. With automatic lazy loading it works, but then you can get into problems later due to scaling issues.

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

Sidebar

Related Questions

Need some help with this problem in implementing with XSLT, I had already implemented
I'm currently working on my own PHP Framework, and I need some help figuring
Help, I am a noob, just need some advice on this bit of code.
I need some advice here, I hope somebody can help me. I have the
I need some advice/help on this, I can't see the wood from the trees
i need some advice and help with a plugin i am writing for Nagios.
Just need some help/advice with SQL Server 2005 and Visual Studio 2005. Basically I
I need some advice / ideas if someone is inclined to help: I have
Need some help... I have jasperserver 4.1 installed on my ubuntu. It runs via
Need some help with Activerecord Querying in a has_many :through association. Model: Job class

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.