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