Table of Contents

Interface IReadOnlyAnnotatable

Namespace
LinqToDB.Internal.Infrastructure
Assembly
linq2db.dll

A class that supports annotations. Annotations allow for arbitrary metadata to be stored on an object.

This interface is typically used by linq2db providers and extensions. It is generally not used in application code.

public interface IReadOnlyAnnotatable
Extension Methods

Properties

this[string]

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

object? this[string name] { get; }

Parameters

name string

The name of the annotation to find.

Property Value

object

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

Methods

FindAnnotation(string)

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

IAnnotation? FindAnnotation(string name)

Parameters

name string

The name of the annotation to find.

Returns

IAnnotation

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

GetAnnotations()

Gets all annotations on the current object.

IEnumerable<IAnnotation> GetAnnotations()

Returns

IEnumerable<IAnnotation>