ConventionalAnnotatable
ConventionalAnnotatable
Class
Definition
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public class ConventionalAnnotatable : Annotatable, IMutableAnnotatable, IAnnotatable
Public Class ConventionalAnnotatable
Inherits Annotatable
Implements IMutableAnnotatable, IAnnotatable
- Inheritance
- Implements
Methods
AddAnnotation(String, Annotation) AddAnnotation(String, Annotation)
Adds an annotation to this object. Throws if an annotation with the specified name already exists.
(Inherited from Annotatable)AddAnnotation(String, Object) AddAnnotation(String, Object)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation AddAnnotation(string name, object value)
Public Overridable Function AddAnnotation(name As String, value As Object) As ConventionalAnnotation
- name
- System.String System.String
- value
- System.Object System.Object
AddAnnotation(String, Object, ConfigurationSource) AddAnnotation(String, Object, ConfigurationSource)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation AddAnnotation(string name, object value, ConfigurationSource configurationSource)
Public Overridable Function AddAnnotation(name As String, value As Object, configurationSource As ConfigurationSource) As ConventionalAnnotation
- name
- System.String System.String
- value
- System.Object System.Object
- configurationSource
- ConfigurationSource ConfigurationSource
CreateAnnotation(String, Object) CreateAnnotation(String, Object)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
protected override Annotation CreateAnnotation(string name, object value)
Protected Overrides Function CreateAnnotation(name As String, value As Object) As Annotation
- name
- System.String System.String
- value
- System.Object System.Object
- Overrides
FindAnnotation(String) FindAnnotation(String)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation FindAnnotation(string name)
Public Overridable Function FindAnnotation(name As String) As ConventionalAnnotation
- name
- System.String System.String
GetAnnotations() GetAnnotations()
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual IEnumerable<ConventionalAnnotation> GetAnnotations()
Public Overridable Function GetAnnotations As IEnumerable(Of ConventionalAnnotation)
GetOrAddAnnotation(String, Object) GetOrAddAnnotation(String, Object)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation GetOrAddAnnotation(string name, object value)
Public Overridable Function GetOrAddAnnotation(name As String, value As Object) As ConventionalAnnotation
- name
- System.String System.String
- value
- System.Object System.Object
OnAnnotationSet(String, Annotation, Annotation) OnAnnotationSet(String, Annotation, Annotation)
Runs the corresponding conventions when an annotation was set or removed.
(Inherited from Annotatable)RemoveAnnotation(String) RemoveAnnotation(String)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation RemoveAnnotation(string name)
Public Overridable Function RemoveAnnotation(name As String) As ConventionalAnnotation
- name
- System.String System.String
SetAnnotation(String, Annotation) SetAnnotation(String, Annotation)
Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.
(Inherited from Annotatable)SetAnnotation(String, Object, ConfigurationSource) SetAnnotation(String, Object, ConfigurationSource)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public virtual ConventionalAnnotation SetAnnotation(string name, object value, ConfigurationSource configurationSource)
Public Overridable Function SetAnnotation(name As String, value As Object, configurationSource As ConfigurationSource) As ConventionalAnnotation
- name
- System.String System.String
- value
- System.Object System.Object
- configurationSource
- ConfigurationSource ConfigurationSource
Properties
Item[String] Item(String)
Gets the value annotation with the given name, returning null if it does not exist.
(Inherited from Annotatable)Explicit Interface Implementations
IAnnotatable.FindAnnotation(String) Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.FindAnnotation(String)
Gets the annotation with the given name, returning null if it does not exist.
(Inherited from Annotatable)IAnnotatable.GetAnnotations() Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.GetAnnotations()
Gets all annotations on the current object.
(Inherited from Annotatable)