0

I've designed the entity model which has been mapped from the Sql server database. Later on, I've updated the Identity column in a particular table in database then I've done Update Model fromDatabase. Unfortunatly, It wasn't updated in my Entity Model. What should I do to sort it out ?

Any help or suggestion are greatly appreciated !!!

2
  • 3
    Drop and re-add the table to your model? I know EF is fussy with changes to identities and existing columns Commented Mar 27, 2013 at 9:16
  • It's annoying me to re-add the table. Is there any other possibilities ? Commented Mar 27, 2013 at 9:23

1 Answer 1

1

Manually edit the EDMX either in Designer or Xml view, whichever is your preference.

Sign up to request clarification or add additional context in comments.

3 Comments

During the 1st time It has generated automatically. My point is the update also should be happen automatically. Am i right ?
As Koenyn correctly pointed out there are scenarios in which the Update function won't be able to update your model. One such scenario is key column changes. If you were to just add a table, relationship or column you would be in good shape. If you'd rather not edit the EDMX then you can always kill it and regen it completely as you did the first time.
Seems very bad designer Issue. Rob Epstein thanks for your suggestion. I planned to edit manually.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.