Condividi tramite


CollectionOwnershipBuilder<TEntity,TDependentEntity>.HasForeignKeyAnnotation Metodo

Definizione

Aggiunge o aggiorna un'annotazione sulla chiave esterna. Se esiste già un'annotazione con la chiave specificata in annotation , il relativo valore verrà aggiornato.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> HasForeignKeyAnnotation (string annotation, object value);
override this.HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)>
Public Overridable Function HasForeignKeyAnnotation (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