Cannot create an association <association name> - property listed twice

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

Cannot create an association <association name>. The same property is listed more than once: <property name>.

Associations are defined by the selected Association Properties in the Association Editor dialog box. Properties can be listed only one time for each class in the association.

The property in the message appears more than one time in either the Parent or Child class's Association Properties.

To resolve this condition

  • Examine the message and note the property specified in the message.

  • Click OK to dismiss the message box.

  • Inspect the Association Properties and remove the duplicate entries.

  • Click OK.

See Also

LINQ to SQL Tools in Visual Studio
How to: Create an association (relationship) between LINQ to SQL classes (O/R Designer)
Walkthrough: Creating LINQ to SQL Classes (O-R Designer)
LINQ to SQL