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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Andrew
    Andrew avatar
    0 posts
    Registered:
    05 Jan 2017
    06 Jun 2017
    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