Skip to main content
.NET Framework 4.5.2+

AssociationAttribute.UseAssociationNameAsIntermediateTableName Property

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.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public bool UseAssociationNameAsIntermediateTableName { get; set; }

Property Value

Type Description
Boolean

true to use the association’s name as the name of a junction table; otherwise, false.

Remarks

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 {
    // ...
}
See Also