Ошибка в этой строке
Код: Выделить всё
using System.ComponentModel.DataAnnotations.Schema;
Код: Выделить всё
The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations'
Оба кода ссылаются на эту DLL из одного и того же места:
Код: Выделить всё
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ComponentModel.DataAnnotations.dll
Подробнее здесь: https://stackoverflow.com/questions/790 ... ystem-comp