RequiredNavigationAttributeConvention.ProcessForeignKeyPrincipalEndChanged Method
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.
Called after the principal end of a foreign key is changed.
public override void ProcessForeignKeyPrincipalEndChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.RequiredAttribute> dependentToPrincipalAttributes, System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.RequiredAttribute> principalToDependentAttributes, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder> context);
public override void ProcessForeignKeyPrincipalEndChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.RequiredAttribute>? dependentToPrincipalAttributes, System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.RequiredAttribute>? principalToDependentAttributes, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder> context);
override this.ProcessForeignKeyPrincipalEndChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * seq<System.ComponentModel.DataAnnotations.RequiredAttribute> * seq<System.ComponentModel.DataAnnotations.RequiredAttribute> * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder> -> unit
Public Overrides Sub ProcessForeignKeyPrincipalEndChanged (relationshipBuilder As IConventionForeignKeyBuilder, dependentToPrincipalAttributes As IEnumerable(Of RequiredAttribute), principalToDependentAttributes As IEnumerable(Of RequiredAttribute), context As IConventionContext(Of IConventionForeignKeyBuilder))
Parameters
- relationshipBuilder
- IConventionForeignKeyBuilder
The builder for the foreign key.
- dependentToPrincipalAttributes
- IEnumerable<RequiredAttribute>
The attributes on the dependent to principal navigation.
- principalToDependentAttributes
- IEnumerable<RequiredAttribute>
The attributes on the principal to dependent navigation.
Additional information associated with convention execution.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Entity Framework