共用方式為


IForeignKeyAnnotationChangedConvention.ProcessForeignKeyAnnotationChanged 方法

定義

多載

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

在外鍵上變更批註之後呼叫。

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

在外鍵上變更批註之後呼叫。

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

來源:
IForeignKeyAnnotationChangedConvention.cs
來源:
IForeignKeyAnnotationChangedConvention.cs
來源:
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>

與慣例執行相關聯的其他資訊。

適用於