共用方式為


Annotatable.OnAnnotationSet(String, Annotation, Annotation) 方法

定義

設定或移除注釋時呼叫。

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation OnAnnotationSet (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation oldAnnotation);
abstract member OnAnnotationSet : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.OnAnnotationSet : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function OnAnnotationSet (name As String, annotation As Annotation, oldAnnotation As Annotation) As Annotation

參數

name
String

集合批註的索引鍵。

annotation
Annotation

批註集。

oldAnnotation
Annotation

舊批註。

傳回

已設定的批註。

適用於