IForeignKeyAnnotationChangedConvention.ProcessForeignKeyAnnotationChanged 方法

定义

重载

ProcessForeignKeyAnnotationChanged(IConventionForeignKeyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

在对外键更改批注后调用。

ProcessForeignKeyAnnotationChanged(IConventionRelationshipBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

在对外键更改批注后调用。

ProcessForeignKeyAnnotationChanged(IConventionForeignKeyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Source:
IForeignKeyAnnotationChangedConvention.cs
Source:
IForeignKeyAnnotationChangedConvention.cs
Source:
IForeignKeyAnnotationChangedConvention.cs

在对外键更改批注后调用。

public void ProcessForeignKeyAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
public void ProcessForeignKeyAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
abstract member ProcessForeignKeyAnnotationChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> -> unit
Public Sub ProcessForeignKeyAnnotationChanged (relationshipBuilder As IConventionForeignKeyBuilder, name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation, context As IConventionContext(Of IConventionAnnotation))

参数

relationshipBuilder
IConventionForeignKeyBuilder

外键的生成器。

name
String

批注名称。

annotation
IConventionAnnotation

新批注。

oldAnnotation
IConventionAnnotation

旧批注。

context
IConventionContext<IConventionAnnotation>

与约定执行关联的其他信息。

适用于

ProcessForeignKeyAnnotationChanged(IConventionRelationshipBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

在对外键更改批注后调用。

public void ProcessForeignKeyAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder relationshipBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
abstract member ProcessForeignKeyAnnotationChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> -> unit
Public Sub ProcessForeignKeyAnnotationChanged (relationshipBuilder As IConventionRelationshipBuilder, name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation, context As IConventionContext(Of IConventionAnnotation))

参数

relationshipBuilder
IConventionRelationshipBuilder

外键的生成器。

name
String

批注名称。

annotation
IConventionAnnotation

新批注。

oldAnnotation
IConventionAnnotation

旧批注。

context
IConventionContext<IConventionAnnotation>

与约定执行关联的其他信息。

适用于