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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:28:12+00:00 2026-06-09T22:28:12+00:00

I am current running EF 4.3.1 which was recently upgraded from 4.1, using a

  • 0

I am current running EF 4.3.1 which was recently upgraded from 4.1, using a database first model. I also have my model and objects spread across different assemblies.

As I’m developing however, I’m finding the entity framework almost impossible to live with, because despite having the option “update model from database”, seldom can I do so without causing the designer to fire up errors.

If I add an index to a table, create a fk relationship, there’s a good chance that the designer will show a ‘object null reference exception’ when I try do do anything with the database afterwards. To make it even harder, the error message is exactly that vague, not pointing to what it actually could be.

I have asked a question elsewhere and the response I got back was to recreate the edmx. Surely not when I have 60 to 80 entities?

I can’t believe that I’m the only one with the issue, and i can’t believe any developer could live with the situation, but I can’t find information anywhere as to what the issue is – if in fact its not ‘by design’.

Can anyone help?

  • 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-09T22:28:14+00:00Added an answer on June 9, 2026 at 10:28 pm

    The reason for the crash is due to the de-sync’d relationship between the edmx and the dbcontext.

    When changes, or even refresh is applied to the edmx you MUST run the custom tool update before exiting the project. Failure to do this will result in a corrupt edmx., which I have yet not managed to fix without restoring/recreating it.

    Whilst this is in your hands most of the time, obviously there are occasions when this is outside of your control and should be something managed by the framework rather than depend on your ability to remember and the will of god. Hopefully longer term this will be included in the framework.

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

Sidebar

Related Questions

I have an IronPython script that looks for current running processes using WMI. The
I have recently changed from web site model to a web application model .
I have a task killer program that has a listbox of current running processes.
The current error when running this from the command line is Call to a
I have a server which is running more than 15 Magento stores, but they
I've installed CouchDB in Ubuntu 11.10. I have an HTTPD server running (which functions
I have created a Custom ThreadPool which Accepts Jobs from Client, Processes it and
How do you show the path of the current running python module? Which would
I have an application which runs on rails 2.3.2 and now i upgraded my
I currently have a long running thread which uses a hibernate session to perform

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.