CollectionOwnershipBuilder<TEntity,TDependentEntity>.HasEntityTypeAnnotation Método

Definição

Adiciona ou atualiza uma anotação no tipo de entidade de propriedade. Se uma anotação com a chave especificada em annotation já existir, seu valor será atualizado.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> HasEntityTypeAnnotation (string annotation, object value);
override this.HasEntityTypeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)>
Public Overridable Function HasEntityTypeAnnotation (annotation As String, value As Object) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)

Parâmetros

annotation
String

A chave da anotação a ser adicionada ou atualizada.

value
Object

O valor a ser armazenado na anotação.

Retornos

A mesma instância do construtor para que várias chamadas de configuração possam ser encadeadas.

Aplica-se a