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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework