LifeLine
LifeLine

Reputation: 1

Entity Framework 6.1.1 When using same foreign key property in two child classes giving “property name is already defined” error

I am Stuck with the TPH issue in Entity Framework 6.1.1 When using same foreign key propertie in the two child classes I am getting error : "One or more validation errors were detected during model generation:\r\n\r\ xyz: Name: Each property name in a type must be unique. Property name ' ' is already defined.\r\n". Please refere last example in given link . http://entityframework.codeplex.com/workitem/583 Any alternate solution will be appreciated.....

Upvotes: 0

Views: 185

Answers (1)

cesAR
cesAR

Reputation: 722

I have noticed that this happens when you establish a navigation property, and then add a scale property, both properties (scalar and navigation) associated with a single foreign key. Perhaps your case.

Upvotes: 1

Related Questions