Moved by moderator XIII: This question's more related to the designer of Visual Studio 2008. Questions about Entity Framework itself should be posted into the Data Access forum:
Hi,
I am having a problem creating an Entity Data Model using Visual Studio 2008. To reproduce...
Create a new data model.
Added some tables by selecting Update Model from Database.
Look in the Model Browser, tables are added under Entity Types.
Delete one of the tables, the table is gone from Entity Types but is still in the Model Store under Tables/Views
Now, when I select Update Model from Database, I can't see the table I previously deleted.
How do I add the deleted table again, using either Update Model from Database, or any other method?
HansBrrix
Member
2 Points
7 Posts
Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same tab...
Nov 17, 2008 03:38 PM|LINK
Moved by moderator XIII: This question's more related to the designer of Visual Studio 2008. Questions about Entity Framework itself should be posted into the Data Access forum:
Hi,
I am having a problem creating an Entity Data Model using Visual Studio 2008. To reproduce...
Create a new data model.
Added some tables by selecting Update Model from Database.
Look in the Model Browser, tables are added under Entity Types.
Delete one of the tables, the table is gone from Entity Types but is still in the Model Store under Tables/Views
Now, when I select Update Model from Database, I can't see the table I previously deleted.
How do I add the deleted table again, using either Update Model from Database, or any other method?
Cheers,
Sam
docluv
Star
12685 Points
2005 Posts
ASPInsiders
MVP
Re: Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same...
Nov 17, 2008 03:45 PM|LINK
Right-Click on the model design surface and select Update Model from Database and that should do it for you.
HansBrrix
Member
2 Points
7 Posts
Re: Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same...
Nov 17, 2008 03:48 PM|LINK
Ok, found my answer... It's an outstanding issue being discussed here...
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3832683&SiteID=1
Seems like the only way to do it at the minute is to edit the xml and delete the entity by hand.