1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Added db field to a table. Unable to get the DBML file to re-generate Model

Added db field to a table. Unable to get the DBML file to re-generate Model

1 posts, 0 answered
  1. Andrew
    Andrew avatar
    0 posts
    Registered:
    05 Jan 2017
    06 Jun
    Link to this post

    Background: Added a new column to one of the db tables. Updated the DBML file.               Updated the Entity Framework.

    When attempting to call that new column using linq and a basic where clause ("var x = db.Customer.Where(x => x.Fname =="Test"), I am unable to see the new column I added in the intellisense. If I add it manually it says it doesn't exist.

    Back tracked through the context believing this was a simple issue and noticed that when I got back to the model it was metadata. 

    I believe the issue is that the model did not re-generate when i made a change to the DBML like normal MVC would when you have an EDMX file and you save it. The model is not updating and I cannot manually change it since it is metadata.

    Any thoughts or considerations would be awesome at this point :). 

     

     

     

1 posts, 0 answered