Annotatable.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

Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0