Table of Contents

Class Annotatable

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

Base class for types that support reading and writing annotations.

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

public class Annotatable : AnnotatableBase, IAnnotatable, IMutableAnnotatable, IReadOnlyAnnotatable
Inheritance
Annotatable
Implements
Derived
Inherited Members

Remarks

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

Constructors

Annotatable()

public Annotatable()

Methods

EnsureMutable()

Throws if the model is read-only.

protected override void EnsureMutable()

EnsureReadOnly()

Throws if the model is not read-only.

protected override void EnsureReadOnly()