IConventionAnnotatable Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class that exposes annotations that can be modified. Annotations allow for arbitrary metadata to be stored on an object.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IConventionAnnotatable = interface
interface IAnnotatable
type IConventionAnnotatable = interface
interface IReadOnlyAnnotatable
Public Interface IConventionAnnotatable
Implements IAnnotatable
Public Interface IConventionAnnotatable
Implements IReadOnlyAnnotatable
- Derived
- Implements
Remarks
See Model building conventions for more information and examples.
Properties
Builder |
Gets the builder that can be used to configure this object. |
IsInModel |
Indicates whether this object is in a model, i.e. hasn't been removed from one. |
Item[String] |
Gets the value of the annotation with the given name, returning |
Methods
AddAnnotation(String, Object, Boolean) |
Adds an annotation to this object. Throws if an annotation with the specified name already exists. |
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean) |
Adds annotations to an object. |
AddRuntimeAnnotation(String, Object) |
Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
AnnotationsToDebugString(Int32) |
Gets the debug string for all annotations declared on the object. (Inherited from IReadOnlyAnnotatable) |
FindAnnotation(String) |
Gets the annotation with the given name, returning |
FindRuntimeAnnotation(String) |
Gets the runtime annotation with the given name, returning |
FindRuntimeAnnotationValue(String) |
Gets the value of the runtime annotation with the given name, returning |
GetAnnotation(String) |
Gets the annotation with the given name, throwing if it does not exist. |
GetAnnotations() |
Gets all annotations on the current object. |
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg) |
Gets the value of the runtime annotation with the given name, adding it if one does not exist. (Inherited from IAnnotatable) |
GetRuntimeAnnotations() |
Gets all the runtime annotations on the current object. (Inherited from IAnnotatable) |
RemoveAnnotation(String) |
Removes the annotation with the given name from this object. |
RemoveRuntimeAnnotation(String) |
Removes the given runtime annotation from this object. (Inherited from IAnnotatable) |
SetAnnotation(String, Object, Boolean) |
Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. |
SetOrRemoveAnnotation(String, Object, Boolean) |
Sets the annotation stored under the given name. Overwrites the existing annotation if an
annotation with the specified name already exists. Removes the existing annotation if |
SetRuntimeAnnotation(String, Object) |
Sets the runtime annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
Extension Methods
AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean) |
Adds annotations to an object. |
GetAnnotation(IConventionAnnotatable, String) |
Gets the annotation with the given name, throwing if it does not exist. |
SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean) |
Sets the annotation stored under the given name. Overwrites the existing annotation if an
annotation with the specified name already exists. Removes the existing annotation if |
AnnotationsToDebugString(IAnnotatable, Int32) |
Gets the debug string for all annotations declared on the object. |
GetAnnotation(IAnnotatable, String) |
Gets the annotation with the given name, throwing if it does not exist. |