Compartilhar via


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Método

Definição

Adiciona uma nova chave alternativa a esse tipo de entidade.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function AddKey (properties As IReadOnlyList(Of RuntimeProperty)) As RuntimeKey

Parâmetros

properties
IReadOnlyList<RuntimeProperty>

As propriedades que compõem a chave alternativa.

Retornos

A chave recém-criada.

Aplica-se a