Annotatable.CreateAnnotation(String, Object) Method

Definition

Creates a new annotation.

C#
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation CreateAnnotation (string name, object value);

Parameters

name
String

The key of the annotation.

value
Object

The value to be stored in the annotation.

Returns

The newly created annotation.

Applies to

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