One to one relationship, different key column name, Entity Framework, Code First approach
问题 I have two tables that have already been created. Document and DocumentStyle . They have a one to one relationship through the DocumentID column. However, it is called Id in Document table, and DocumentId in DocumentStyle table. Something like this > Document DocumentStyle > |----------| |----------------| > |Id - Key |<------>|DocumentId- key | > |Name-VChar| |Color -VChar| > |Desc-VChar| |Font VChar | > |----------| |----------------| I'm getting the following error in VS The