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
Public method AssociationAttribute Initializes a new instance of the AssociationAttribute class

Properties

  Name Description
Public property Name Gets or sets the name of a constraint.
Public property OtherKey Gets or sets one or more members of the target entity class as key values on the other side of the association.
Public property ThisKey Gets or sets members of this entity class to represent the key values on this side of the association.

See Also

Reference

DbExtensions Namespace

© Max Toro Q.