AnnotatableBase.OnAnnotationSet(String, Annotation, Annotation) Method

Definition

Called when an annotation was set or removed.

C#
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation? OnAnnotationSet (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? oldAnnotation);

Parameters

name
String

The key of the set annotation.

annotation
Annotation

The annotation set.

oldAnnotation
Annotation

The old annotation.

Returns

The annotation that was set.

Applies to

Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0