Condividi tramite


CollectionOwnershipBuilder<TEntity,TDependentEntity>.HasEntityTypeAnnotation Metodo

Definizione

Aggiunge o aggiorna un'annotazione nel tipo di entità di proprietà. Se esiste già un'annotazione con la chiave specificata in annotation , verrà aggiornato il relativo valore.

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)

Parametri

annotation
String

Chiave dell'annotazione da aggiungere o aggiornare.

value
Object

Valore da archiviare nell'annotazione.

Restituisce

Stessa istanza del generatore in modo che sia possibile concatenare più chiamate di configurazione.

Si applica a