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

Posted by Community Admin on 04-Aug-2018 13:51

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

All Replies

Posted by Community Admin on 06-Jun-2017 00:00

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

 

 

 

This thread is closed