I'm trying to set up my EF Model. I have 2 tables: Posts and Comments. I right clicked and added an association and I see a new column was generated "PostPostID". Is this necessary? Can I delete it? When I do, I get this error: There is no property with name 'PostsPostID' defined in type referred by Role 'Comments'.
Thank you.
Asked
Active
Viewed 1,272 times
0

Rivka
- 2,172
- 10
- 45
- 74
-
I unchecked "Add foreign key properties..". That did it. Knew it was something simple. – Rivka Mar 21 '12 at 00:35
1 Answers
1
That column was added as Foreign Key to your association but you probably already have foreign key as part of the entity - PostID
. You will need to map PostID
as FK for the new association.

Community
- 1
- 1

Ladislav Mrnka
- 360,892
- 59
- 660
- 670