RuntimeForeignKey Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[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)
Parameters
- dependentProperties
- IReadOnlyList<RuntimeProperty>
- principalKey
- RuntimeKey
- dependentEntityType
- RuntimeEntityType
- principalEntityType
- RuntimeEntityType
- deleteBehavior
- DeleteBehavior
- unique
- Boolean
- required
- Boolean
- requiredDependent
- Boolean
- ownership
- Boolean
- Attributes
Applies to
Entity Framework