Annotation Annotation Class

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

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

Syntax

Declaration

public class Annotation : IAnnotationPublic Class Annotation
    Implements IAnnotation

Inheritance Hierarchy

  • System.Object
    System.Object
  • Annotation
    Annotation

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Initializes a new instance of the Annotation class.

Properties summary

Gets the key of this annotation.

Gets the value assigned to this annotation.

Constructors

  • Annotation(String, Object)
    Annotation(String, Object)

    Initializes a new instance of the Annotation class.

    public Annotation(string name, object value)Public Sub New(name As String, value As Object)

    Parameters

    • name
      System.String
      System.String

      The key of this annotation.

    • value
      System.Object
      System.Object

      The value assigned to this annotation.

Properties

  • Name
    Name

    Gets the key of this annotation.

    public virtual string Name { get; }Public Overridable ReadOnly Property Name As String

    Property Value

    • System.String
      System.String
  • Value
    Value

    Gets the value assigned to this annotation.

    public virtual object Value { get; }Public Overridable ReadOnly Property Value As Object

    Property Value

    • System.Object
      System.Object

Details

Assembly

Microsoft.EntityFrameworkCore.dll