xpo-devexpress-dot-xpo-dot-associationattribute.md
Gets or sets whether the association’s name is used as the name of a junction table in a many-to-many relationship.
Namespace : DevExpress.Xpo
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public bool UseAssociationNameAsIntermediateTableName { get; set; }
Public Property UseAssociationNameAsIntermediateTableName As Boolean
| Type | Description |
|---|---|
| Boolean |
true to use the association’s name as the name of a junction table; otherwise, false.
|
This property is applied to both sides of many-to-many associations. The following example demonstrates how to apply AssociationAttribute and set the UseAssociationNameAsIntermediateTableName property.
[Association("YourAssociation", UseAssociationNameAsIntermediateTableName = true)]
public XPCollection<YourChildType> Children {
// ...
}
Imports DevExpress.Xpo
' ...
<Association("YourAssociation", UseAssociationNameAsIntermediateTableName := True)>
Public ReadOnly Property Children() As XPCollection(Of YourChildType)
' ...
End Property
See Also