Friday 8 December 2017

The specified type member '' is not supported in LINQ to Entities.

Getting issue with entity framework for newly added column into database table.

The specified type member '' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.




This is causing issue due to the property in created on your entity framework is not mapped. It is working fine if you are running your application into IIS.
It won’t resolve the problem even if you do clean and build your application and if you see the  edmx file this colum is already exist.

To resolve that remove that table from your edmx files and update model from data base 
(right click -> update model from database). Select particular table that you deleted.  Add to your file.
Now it will resolve the problem. I cann’t say it’s a only one solution or best but it help you to resolve issue.

No comments:

Post a Comment