Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same table again

Last post 11-17-2008 11:48 AM by HansBrrix. 2 replies.

Sort Posts:

  • Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same table again

    11-17-2008, 11:38 AM
    • Member
      2 point Member
    • HansBrrix
    • Member since 03-31-2008, 12:37 PM
    • Posts 7

    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

    Herrow
  • Re: Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same table again

    11-17-2008, 11:45 AM
    • Star
      12,649 point Star
    • docluv
    • Member since 06-29-2002, 11:16 PM
    • Willow Spring NC
    • Posts 2,002
    • ASPInsiders
      TrustedFriends-MVPs

    Right-Click on the model design surface and select Update Model from Database and that should do it for you.

  • Re: Problem with Entity Model after deleteing table: cannot delete in Store, there can't add same table again

    11-17-2008, 11:48 AM
    Answer
    • Member
      2 point Member
    • HansBrrix
    • Member since 03-31-2008, 12:37 PM
    • Posts 7

     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.

     

    Herrow
Page 1 of 1 (3 items)