AssociationAttribute Classe

Definição

Atenção

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

Especifica que um membro da entidade representa uma relação de dados, como uma relação de chave estrangeira.

public ref class AssociationAttribute sealed : 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)]
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.")>]
type AssociationAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type AssociationAttribute = class
    inherit Attribute
Public NotInheritable Class AssociationAttribute
Inherits Attribute
Herança
AssociationAttribute
Atributos

Construtores

Name Description
AssociationAttribute(String, String, String)
Obsoleto.

Inicializa uma nova instância da AssociationAttribute classe.

Propriedades

Name Description
IsForeignKey
Obsoleto.

Recebe ou define um valor que indica se o membro da associação representa uma chave estrangeira.

Name
Obsoleto.

Obtém o nome da associação.

OtherKey
Obsoleto.

Obtém os nomes das propriedades dos valores-chave do lado OtherKey da associação.

OtherKeyMembers
Obsoleto.

Obtém um conjunto de membros-chave individuais que estão especificados na OtherKey propriedade.

ThisKey
Obsoleto.

Obtém os nomes das propriedades dos valores-chave do lado ThisKey da associação.

ThisKeyMembers
Obsoleto.

Obtém um conjunto de membros-chave individuais que estão especificados na ThisKey propriedade.

TypeId
Obsoleto.

Quando implementado numa classe derivada, obtém um identificador único para esta Attribute.

(Herdado de Attribute)

Métodos

Name Description
Equals(Object)
Obsoleto.

Devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
GetHashCode()
Obsoleto.

Devolve o código de hash para esta instância.

(Herdado de Attribute)
GetType()
Obsoleto.

Obtém o Type da instância atual.

(Herdado de Object)
IsDefaultAttribute()
Obsoleto.

Quando sobrescrito numa classe derivada, indica se o valor desta instância é o valor padrão para a classe derivada.

(Herdado de Attribute)
Match(Object)
Obsoleto.

Quando sobrescrito numa classe derivada, devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
MemberwiseClone()
Obsoleto.

Cria uma cópia superficial do atual Object.

(Herdado de Object)
ToString()
Obsoleto.

Devolve uma cadeia que representa o objeto atual.

(Herdado de Object)

Implementações de Interface Explícita

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Obsoleto.

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de despacho.

(Herdado de Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
Obsoleto.

Recupera a informação de tipo de um objeto, que pode ser usada para obter a informação de tipo para uma interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)
Obsoleto.

Recupera o número de interfaces de informações de tipo que um objeto fornece (0 ou 1).

(Herdado de Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
Obsoleto.

Proporciona acesso a propriedades e métodos expostos por um objeto.

(Herdado de Attribute)

Aplica-se a