Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​DataAnnotations.​AssociationAttribute
Assembly: System.ComponentModel.Annotations
Inheritance: object → Attribute → AssociationAttribute
Specifies that an entity member represents a data relationship, such as a foreign key relationship.
Properties
public
bool
IsForeignKey
Gets or sets a value that indicates whether the association member represents a foreign key.
public
string
Name
Gets the name of the association.
public
string
OtherKey
Gets the property names of the key values on the OtherKey side of the association.
public
Collections.​Generic.​IEnumerable<​string>
OtherKeyMembers
Gets a collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKey" /> property.
public
string
ThisKey
Gets the property names of the key values on the ThisKey side of the association.
public
Collections.​Generic.​IEnumerable<​string>
ThisKeyMembers
Gets a collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKey" /> property.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object