Compartilhar via


ConventionAnnotatable.OnAnnotationSet Método

Definição

Sobrecargas

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Chamado quando uma anotação foi definida ou removida.

OnAnnotationSet(String, Annotation, Annotation)

Chamado quando uma anotação foi definida ou removida.

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Chamado quando uma anotação foi definida ou removida.

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

Parâmetros

name
String

A chave da anotação do conjunto.

annotation
IConventionAnnotation

O conjunto de anotações.

oldAnnotation
IConventionAnnotation

A anotação antiga.

Retornos

A anotação que foi definida.

Aplica-se a

OnAnnotationSet(String, Annotation, Annotation)

Chamado quando uma anotação foi definida ou removida.

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

Parâmetros

name
String

A chave da anotação do conjunto.

annotation
Annotation

O conjunto de anotações.

oldAnnotation
Annotation

A anotação antiga.

Retornos

A anotação que foi definida.

Aplica-se a