語言

ConventionAnnotatable.OnAnnotationSet 方法

定義

多載

名稱 Description
OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

當註解被設定或移除時會被呼叫。

OnAnnotationSet(String, Annotation, Annotation)

當註解被設定或移除時會被呼叫。

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs

當註解被設定或移除時會被呼叫。

protected virtual Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? oldAnnotation);
protected virtual Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation);
override this.OnAnnotationSet : string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Protected Overridable Function OnAnnotationSet (name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation) As IConventionAnnotation

參數

name
String

集合註解的鍵。

annotation
IConventionAnnotation

註解集。

oldAnnotation
IConventionAnnotation

舊註解。

傳回

那個註解。

適用於

OnAnnotationSet(String, Annotation, Annotation)

來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs
來源:
ConventionAnnotatable.cs

當註解被設定或移除時會被呼叫。

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

參數

name
String

集合註解的鍵。

annotation
Annotation

註解集。

oldAnnotation
Annotation

舊註解。

傳回

那個註解。

適用於