共用方式為


IElementTypeAnnotationChangedConvention.ProcessElementTypeAnnotationChanged 方法

定義

在 上的 IConventionElementType 批註變更之後呼叫。

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

參數

builder
IConventionElementTypeBuilder

屬性的產生器。

name
String

批註名稱。

annotation
IConventionAnnotation

新的批註。

oldAnnotation
IConventionAnnotation

舊的批註。

context
IConventionContext<IConventionAnnotation>

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

適用於