AssociationAttribute Class
Designates a property to represent a database association, such as a foreign key relationship.
Inheritance Hierarchy
System.Object
System.Attribute
DbExtensions.AssociationAttribute
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public sealed class AssociationAttribute : Attribute
The AssociationAttribute type exposes the following members.
Constructors
| Name | Description |
|---|---|
| AssociationAttribute | Initializes a new instance of the AssociationAttribute class |
Properties
| Name | Description |
|---|---|
| Name | Gets or sets the name of a constraint. |
| OtherKey | Gets or sets one or more members of the target entity class as key values on the other side of the association. |
| ThisKey | Gets or sets members of this entity class to represent the key values on this side of the association. |