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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:43:25+00:00 2026-05-20T10:43:25+00:00

I have another question about binding using C# and the entity framework. Here, I’m

  • 0

I have another question about binding using C# and the entity framework.

Here, I’m looking to bind a navigation property to a listbox or a listview.

I saw on different posts that if I update the collection using code behind the list would not be notified because the collection does not handle notification (it’s always the same problem anyway).

People suggested to use an ObservableCollection for example, but, and here is my question, this comes down to basically duplicate the collection and hence, if I modify it, I’d have to handle in code-behind the fact that the change has also to be applied to the “original” navigation property right?

If that’s the case, I was thinking: why not create a custom property called, say, MyObservableNavigationProperty in a partial class. I could then interact only with this collection, catch the event when the collection is changed and apply the change to the “original” collection. Is that a nice way to do the trick? or am I getting all confused here….

  • 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-20T10:43:26+00:00Added an answer on May 20, 2026 at 10:43 am

    I usually code my entities by hand. The flexability it provides is generally more useful than the time saved using the designer to generate some properties, especially since EF4 can generate proxies to do the important tracking/lazy loading bits.

    That said, if you don’t have that option you could try using the ADO.NET Self-Tracking Entity Generator Template to generate your entities if possible. The collection’s it generates inherit from ObservableCollection<T>.

    If that isn’t possible, then I think your partial class solution is the way to go.

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

Sidebar

Related Questions

My question is about properly binding the property of one element to another. Here
Following on from a question I posted yesterday about GUIs, I have another problem
I have a very basic question about binding between controls. I have a class
I'm fairly new to Haskell and have a question about pattern-matching. Here is a
As described in another question , I have a set of Model objects and
this kind of follows on from another question of mine. Basically, once I have
Ok another WPF question, well I guess this is just general .NET. I have
Another basic Rails question: I have a database table that needs to contain references
Now I have seen this question in another forum but it didn't had an
I'm supporting an existing application written by another developer and I have a question

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.