Partilhar via


The property <property name> cannot be deleted because it is participating in the association <association name>

The selected property is set as the Association Property for the association between the classes indicated in the error message. Properties cannot be deleted if they are participating in an association between data classes.

Set the Association Property to a different property of the data class to enable successful deletion of the desired property.

To correct this error

  1. Select the association line on the O/R Designer that connects the data classes indicated in the error message.

  2. Double-click the line to open the Association Editor dialog box.

  3. Remove the property from the Association Properties.

  4. Try to delete the property again.

See Also

Tasks

How to: Create an Association (Relationship) Between LINQ to SQL Classes (O/R Designer)

Walkthrough: Creating LINQ to SQL Classes (O/R Designer)

Concepts

O/R Designer Overview

Other Resources

LINQ to SQL [LINQ to SQL]