Поделиться через


ConventionAnnotatable.OnAnnotationSet Метод

Определение

Перегрузки

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Вызывается при установке или удалении заметки.

OnAnnotationSet(String, Annotation, Annotation)

Вызывается при установке или удалении заметки.

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Вызывается при установке или удалении заметки.

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)

Вызывается при установке или удалении заметки.

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

Старая заметка.

Возвращаемое значение

Заданная заметка.

Применяется к