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
Properties
Name
Gets the key of this annotation.
public virtual string Name { get; }
Property Value
Value
Gets the value assigned to this annotation.
public virtual object? Value { get; }