Lenguaje

AnnotatableBase Clase

Definición

Clase base para tipos que admiten la lectura y escritura de anotaciones.

Normalmente, este tipo lo usan los proveedores de bases de datos (y otras extensiones). Por lo general, no se usa en el código de aplicación.

[System.Runtime.CompilerServices.Nullable(0)]
public class AnnotatableBase : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public class AnnotatableBase : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type AnnotatableBase = class
    interface IAnnotatable
    interface IReadOnlyAnnotatable
type AnnotatableBase = class
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Class AnnotatableBase
Implements IAnnotatable
Herencia
AnnotatableBase
Derivado
Atributos
Implementaciones

Comentarios

Consulte Implementación de proveedores y extensiones de base de datos para obtener más información y ejemplos.

Constructores

Nombre Description
AnnotatableBase()

Clase base para tipos que admiten la lectura y escritura de anotaciones.

Normalmente, este tipo lo usan los proveedores de bases de datos (y otras extensiones). Por lo general, no se usa en el código de aplicación.

Propiedades

Nombre Description
IsReadOnly

Indica si el objeto actual es de solo lectura.

Item[String]

Obtiene la anotación de valor con el nombre especificado y devuelve null si no existe.

Métodos

Nombre Description
AddAnnotation(String, Annotation)

Agrega una anotación a este objeto. Produce si ya existe una anotación con el nombre especificado.

AddAnnotation(String, Object)

Agrega una anotación a este objeto. Produce si ya existe una anotación con el nombre especificado.

AddAnnotations(IEnumerable<IAnnotation>)

Agrega anotaciones a este objeto.

AddAnnotations(IReadOnlyDictionary<String,Object>)

Agrega anotaciones a este objeto.

AddRuntimeAnnotation(String, Annotation)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

AddRuntimeAnnotation(String, Object)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

AddRuntimeAnnotations(IEnumerable<Annotation>)

Agrega anotaciones en tiempo de ejecución a este objeto.

AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

Agrega anotaciones en tiempo de ejecución a este objeto.

CreateAnnotation(String, Object)

Crea una nueva anotación.

CreateRuntimeAnnotation(String, Object)

Crea una nueva anotación en tiempo de ejecución.

EnsureMutable()

Produce si el modelo es de solo lectura.

EnsureReadOnly()

Produce si el modelo no es de solo lectura.

FindAnnotation(String)

Obtiene la anotación con el nombre especificado y devuelve null si no existe.

FindRuntimeAnnotation(String)

Obtiene la anotación en tiempo de ejecución con el nombre especificado y devuelve null si no existe.

GetAnnotation(String)

Obtiene la anotación con el nombre especificado, que produce si no existe.

GetAnnotations()

Obtiene todas las anotaciones del objeto actual.

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

Obtiene el valor de la anotación en tiempo de ejecución con el nombre especificado y lo agrega si no existe uno.

GetRuntimeAnnotations()

Obtiene todas las anotaciones en tiempo de ejecución en el objeto actual.

OnAnnotationSet(String, Annotation, Annotation)

Se llama cuando se estableció o quitó una anotación.

RemoveAnnotation(String)

Quita la anotación especificada de este objeto.

RemoveRuntimeAnnotation(String)

Quita la anotación en tiempo de ejecución especificada de este objeto.

SetAnnotation(String, Annotation, Annotation)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetAnnotation(String, Object)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetRuntimeAnnotation(String, Annotation, Annotation)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetRuntimeAnnotation(String, Object)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

Implementaciones de interfaz explícitas

Nombre Description
IAnnotatable.AddRuntimeAnnotation(String, Object)

Agrega una anotación en tiempo de ejecución a este objeto. Produce si ya existe una anotación con el nombre especificado.

IAnnotatable.FindRuntimeAnnotation(String)

Obtiene la anotación en tiempo de ejecución con el nombre especificado y devuelve null si no existe.

IAnnotatable.GetRuntimeAnnotations()

Obtiene todas las anotaciones en tiempo de ejecución del objeto actual.

IAnnotatable.RemoveRuntimeAnnotation(String)

Quita la anotación en tiempo de ejecución especificada de este objeto.

IAnnotatable.SetRuntimeAnnotation(String, Object)

Establece la anotación en tiempo de ejecución almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

IReadOnlyAnnotatable.FindAnnotation(String)

Obtiene la anotación con el nombre especificado y devuelve null si no existe.

IReadOnlyAnnotatable.GetAnnotations()

Obtiene todas las anotaciones del objeto actual.

IReadOnlyAnnotatable.Item[String]

Obtiene el valor de la anotación con el nombre especificado y devuelve null si no existe.

Métodos de extensión

Nombre Description
AnnotationsToDebugString(IAnnotatable, Int32)

Obtiene la cadena de depuración de todas las anotaciones declaradas en el objeto .

Se aplica a