Muokkaa

AssociationAttribute Class

Definition

Caution

AssociationAttribute has been deprecated and is not supported.

Caution

This attribute is no longer in use and will be ignored if applied.

Specifies that an entity member represents a data relationship, such as a foreign key relationship.

public ref class AssociationAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
[System.Obsolete("AssociationAttribute has been deprecated and is not supported.")]
public sealed class AssociationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
[System.Obsolete("This attribute is no longer in use and will be ignored if applied.")]
public sealed class AssociationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
[<System.Obsolete("AssociationAttribute has been deprecated and is not supported.")>]
type AssociationAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
[<System.Obsolete("This attribute is no longer in use and will be ignored if applied.")>]
type AssociationAttribute = class
    inherit Attribute
Public NotInheritable Class AssociationAttribute
Inherits Attribute
Inheritance
AssociationAttribute
Attributes

Constructors

Name Description
AssociationAttribute(String, String, String)

Initializes a new instance of the AssociationAttribute class.

Properties

Name Description
IsForeignKey

Gets or sets a value that indicates whether the association member represents a foreign key.

Name

Gets the name of the association.

OtherKey

Gets the property names of the key values on the OtherKey side of the association.

OtherKeyMembers

Gets a collection of individual key members that are specified in the OtherKey property.

ThisKey

Gets the property names of the key values on the ThisKey side of the association.

ThisKeyMembers

Gets a collection of individual key members that are specified in the ThisKey property.

TypeId

When implemented in a derived class, gets a unique identifier for this Attribute.

(Inherited from Attribute)

Methods

Name Description
Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

(Inherited from Attribute)
GetHashCode()

Returns the hash code for this instance.

(Inherited from Attribute)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsDefaultAttribute()

When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Inherited from Attribute)
Match(Object)

When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Inherited from Attribute)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to