System.ComponentModel.DataAnnotations.Schema; not found

Posted by Sheonarayan under Error and Solution on 3/22/2014 | Points: 10 | Views : 8307 | Status : [Administrator] | Replies : 0

Problem:


When adding DbContext into a separate class library and creating a separate class library for ASP.NET MVC Models, you might get this error

System.ComponentModel.DataAnnotations.Schema; not found


Solution:


Add reference of EntityFramework.dll reference and you should solve the problem.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

(No response found.)

Login to post response