I have a project with parts:
- A silverlight app
- An asp.net mvc web front that hosts several pages including the one for the silverlight app
- A common library that has the model generated from an entity framework edmx
I needed to add a new property to a table, so first I added it to the database, and then on the entity framework, right click -> Update Model From Database. The entity framework diagram shows the new field, and the asp.net web front can use the new property in its controller actions no problem, but the generated code that gets dumped in the Silverlight application does not contain the new field, so the Siverlight application acts as if it doesn't exist.
How can I get the generated code to respect the new property?
Stack Overflow posts I have followed:
After updating Entity Framework model, Visual Studio does not see changes
- I looked on the update website, and it does not show update 1, it shows update 4, which I have installed
Entity Framework 5 update model from database does not generate table class
- I do not have a .tt file anywhere in my projects
Additionally, I have found that even though intellisense picks up the new property in the asp.net project, when actually trying to execute code for that property I get this error:
Method not found: 'Void Models.User.set_Subscribed(System.Nullable
1)'.