Table of Contents

Class Annotation

Namespace
Microsoft.EntityFrameworkCore.Infrastructure
Assembly
Microsoft.EntityFrameworkCore.dll

An arbitrary piece of metadata that can be stored on an object that implements IReadOnlyAnnotatable.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class Annotation : IAnnotation
Inheritance
Annotation
Implements
Derived
Inherited Members

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

Annotation(string, object?)

Initializes a new instance of the Annotation class.

public Annotation(string name, object? value)

Parameters

name string

The key of this annotation.

value object

The value assigned to this annotation.

Properties

Name

Gets the key of this annotation.

public virtual string Name { get; }

Property Value

string

Value

Gets the value assigned to this annotation.

public virtual object? Value { get; }

Property Value

object