Compartir a través de


RuntimeForeignKey Constructor

Definición

Se trata de una API interna que admite la infraestructura de Entity Framework Core y no está sujeta a los mismos estándares de compatibilidad que las API públicas. Se puede cambiar o quitar sin previo aviso en ninguna versión. Solo debe usarlo directamente en el código con extrema precaución y saber que hacerlo puede dar lugar a errores de aplicación al actualizar a una nueva versión de 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)

Parámetros

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

Se aplica a