Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using NotMapped in MVC4 entity framework in Metadatatype of class.
But in index page it trhows an error
Quote:
The associated metadata type for type 'MvcApplication1.tblPage' contains the following unknown properties or fields: templateid2. Please make sure that the names of these members match the names of the properties on the main type.

So, please explain actual use of NotMapped and also help me to resolve this issue.

Thanks
Posted
Updated 21-Sep-14 23:12pm
v2
Comments
Nathan Minier 4-Sep-14 9:29am    
Show code, please :)
Gihan Liyanage 10-Sep-14 5:25am    

1 solution

Notmapped tricks[^]

Check the above link may this help you understand regarding the Not Mapped property in MVC
Thanks
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900