Condividi tramite


RuntimeForeignKey Costruttore

Definizione

Si tratta di un'API interna che supporta l'infrastruttura Entity Framework Core e non è soggetta agli stessi standard di compatibilità delle API pubbliche. Può essere modificato o rimosso senza preavviso in nessuna versione. È consigliabile usarlo direttamente nel codice con attenzione estrema e sapere che ciò può causare errori dell'applicazione durante l'aggiornamento a una nuova versione di Entity Framework Core.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RuntimeForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> dependentProperties, Microsoft.EntityFrameworkCore.Metadata.RuntimeKey principalKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType dependentEntityType, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType principalEntityType, Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior, bool unique, bool required, bool requiredDependent, bool ownership);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> * Microsoft.EntityFrameworkCore.Metadata.RuntimeKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.DeleteBehavior * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
Public Sub New (dependentProperties As IReadOnlyList(Of RuntimeProperty), principalKey As RuntimeKey, dependentEntityType As RuntimeEntityType, principalEntityType As RuntimeEntityType, deleteBehavior As DeleteBehavior, unique As Boolean, required As Boolean, requiredDependent As Boolean, ownership As Boolean)

Parametri

dependentProperties
IReadOnlyList<RuntimeProperty>
principalKey
RuntimeKey
dependentEntityType
RuntimeEntityType
principalEntityType
RuntimeEntityType
deleteBehavior
DeleteBehavior
unique
Boolean
required
Boolean
requiredDependent
Boolean
ownership
Boolean
Attributi

Si applica a