Class AssociationAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Identifies the end of an association that is involved in an object relationship.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class AssociationAttribute : Attribute
- Inheritance
-
AssociationAttribute
- Inherited Members
Constructors
AssociationAttribute()
Initializes a new instance of the AssociationAttribute class.
public AssociationAttribute()
AssociationAttribute(string)
Initializes a new instance of the AssociationAttribute class with the specified association name.
public AssociationAttribute(string name)
Parameters
name
stringA string value which specifies the association name for the member. This value is assigned to the AssociationAttribute.Name property.
AssociationAttribute(string, string, string)
Initializes a new instance of the AssociationAttribute class with the specified settings.
public AssociationAttribute(string name, string elementAssemblyName, string elementTypeName)
Parameters
name
stringA string value which specifies the member’s association name. This value is assigned to the AssociationAttribute.Name property.
elementAssemblyName
stringA string value which specifies the name of the assembly where the type associated with the object at the opposite end of the association is declared. This value is assigned to the AssociationAttribute.AssemblyName property.
elementTypeName
stringA string value which specifies the full name of the type that describes the object on the opposite end of the association. This value is assigned to the AssociationAttribute.ElementTypeName property.
AssociationAttribute(string, Type)
Initializes a new instance of the AssociationAttribute class with the specified association name and type.
public AssociationAttribute(string name, Type elementType)
Parameters
name
stringA string value which specifies the association name for the member. This value is assigned to the AssociationAttribute.Name property.
elementType
TypeA Type descendant representing the type which is associated with the object on the opposite end of the association.
AssociationAttribute(Type)
Initializes a new instance of the AssociationAttribute class with the specified type which describes the object on the opposite end of the association.
public AssociationAttribute(Type elementType)
Parameters
Properties
AssemblyName
Gets or sets the assembly name where the type which is associated with the object at the opposite end of the association is declared.
public string AssemblyName { get; set; }
Property Value
- string
A string value which specifies the name of the assembly where the type associated with the object at the opposite end of the association is declared.
ElementTypeName
Gets or sets the full name of the type which describes the object on the opposite end of the association.
public string ElementTypeName { get; set; }
Property Value
- string
A string value which specifies the full name of the type that describes the object on the opposite end of the association.
Name
Gets the name of the association.
public string Name { get; }
Property Value
UseAssociationNameAsIntermediateTableName
Gets or sets whether the association’s name is used as the name of a junction table in a many-to-many relationship.
public bool UseAssociationNameAsIntermediateTableName { get; set; }
Property Value
- bool
true to use the association’s name as the name of a junction table; otherwise, false.