System.ComponentModel.DataAnnotations.AssociationAttribute
Specifies that an entity member represents a data relationship, such as a foreign key relationship.
namespace System.ComponentModel.DataAnnotations
{
public sealed class AssociationAttribute : Attribute
{
public string Name { get; }
public string ThisKey { get; }
public string OtherKey { get; }
public bool IsForeignKey { get; set; }
public IEnumerable<string> ThisKeyMembers { get; }
public IEnumerable<string> OtherKeyMembers { get; }
public AssociationAttribute(string name, string thisKey, string otherKey);
}
}