共用方式為


IIndexAnnotationChangedConvention.ProcessIndexAnnotationChanged 方法

定義

在索引上變更批註之後呼叫。

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

參數

indexBuilder
IConventionIndexBuilder

索引的產生器。

name
String

批註名稱。

annotation
IConventionAnnotation

新的批註。

oldAnnotation
IConventionAnnotation

舊的批註。

context
IConventionContext<IConventionAnnotation>

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

適用於