Class ManyToManyAliasAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Applied to properties. Binds parts of the many-to-many relationship defined with an intermediate object.
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class ManyToManyAliasAttribute : Attribute
- Inheritance
-
ManyToManyAliasAttribute
- Inherited Members
Constructors
ManyToManyAliasAttribute(string, string)
Initializes a new instance of the ManyToManyAliasAttribute class with specified settings.
public ManyToManyAliasAttribute(string oneToManyCollectionName, string referenceInTheIntermediateTableName)
Parameters
oneToManyCollectionName
stringThe name of the collection with intermediate objects (the name of the “many” side in the one-to-many relationship with an intermediate object).
referenceInTheIntermediateTableName
stringThe name of the intermediate object property that stores the link to an object you want to bind with a many-to-many relationship (the name of the “one” side in the one-to-many relationship with an intermediate object).
Properties
OneToManyCollectionName
The name of the collection with intermediate objects (the name of the “many” side in the one-to-many relationship with an intermediate object).
public string OneToManyCollectionName { get; set; }
Property Value
- string
The name of the collection with intermediate objects (the name of the “many” side in the one-to-many relationship with an intermediate object).
ReferenceInTheIntermediateTableName
The name of the intermediate object property that stores the link to an object you want to bind with a many-to-many relationship (the name of the “one” side in the one-to-many relationship with an intermediate object).
public string ReferenceInTheIntermediateTableName { get; set; }
Property Value
- string
The name of the intermediate object property that stores the link to an object you want to bind with a many-to-many relationship (the name of the “one” side in the one-to-many relationship with an intermediate object).