The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

XPMemberInfo.IsManyToMany Property

Gets whether a member is involved in a many-to-many association.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public bool IsManyToMany { get; }
Public ReadOnly Property IsManyToMany As Boolean
public bool IsManyToMany { get; }
Public ReadOnly Property IsManyToMany As Boolean

Property Value

Type Description
Boolean

true if the member is involved in a many-to-many association; otherwise, false.

Property Value

Type Description
Boolean

true if the member is involved in a many-to-many association; otherwise, false.

Examples

In the following sample code, the Location class might contain several Departments and each Department can in turn span several Locations.

using DevExpress.Xpo;
// ...
public class Location : XPObject {
    public string Name;
    [Association("Locations-Departments")]
    public XPCollection<Department> Departments { 
        get { return GetCollection<Department>("Departments"); }
    }
}
public class Department : XPObject {
    public string Name;
    [Association("Locations-Departments")]
    public XPCollection<Location> Locations { 
        get { return GetCollection<Location>("Locations"); } 
    }
}
See Also