Annotatable.FindAnnotation(String) Method

Definition

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

C#
public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation FindAnnotation (string name);

Parameters

name
String

The key of the annotation to find.

Returns

The existing annotation if an annotation with the specified name already exists. Otherwise, null.

Implements

Applies to

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