语言

ConventionAnnotatable.OnAnnotationSet 方法

定义

重载

名称 说明
OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

设置或删除批注时调用。

OnAnnotationSet(String, Annotation, Annotation)

设置或删除批注时调用。

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
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)

Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
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

旧批注。

返回

已设置的批注。

适用于