Added db field to a table. Unable to get the DBML file to re-generate Model - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

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
  • 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 :).