asp.net MVC

[Solved] The associated metadata type for type object contains the following unknown properties or fields.

[Solved] The associated metadata type for type object contains the following unknown properties or fields., someone asked me to explain?

I got the following error while running the application, later I found a solution for that. This is due the partial class properties are not found in the main class.

I removed the column field’s likesCount and OutputHtml from the table and updating the model using entity framework. But I haven’t removed the properties from the partial class.

associated metadata type for type contains the following unknown properties or fields

Solution:

I removed the unwanted properties likesCount and OutputHtml from the partial class. The problem was resolved and working fine.

Post your comments / questions