AnnotatableExtensions.GetAnnotation(IAnnotatable, String) Method

Definition

Gets the annotation with the given name, throwing if it does not exist.

C#
public static Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation GetAnnotation (this Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, string annotationName);

Parameters

annotatable
IAnnotatable

The object to find the annotation on.

annotationName
String

The key of the annotation to find.

Returns

The annotation with the specified name.

Applies to

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