Annotatable.AddAnnotation Method
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.
Overloads
AddAnnotation(String, Annotation) |
Adds an annotation to this object. Throws if an annotation with the specified name already exists. |
AddAnnotation(String, Object) |
Adds an annotation to this object. Throws if an annotation with the specified name already exists. |
AddAnnotation(String, Annotation)
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
Adds an annotation to this object. Throws if an annotation with the specified name already exists.
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation);
abstract member AddAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function AddAnnotation (name As String, annotation As Annotation) As Annotation
Parameters
- name
- String
The key of the annotation to be added.
- annotation
- Annotation
The annotation to be added.
Returns
The added annotation.
Applies to
AddAnnotation(String, Object)
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
- Source:
- Annotatable.cs
Adds an annotation to this object. Throws if an annotation with the specified name already exists.
public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, object value);
abstract member AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function AddAnnotation (name As String, value As Object) As Annotation
Parameters
- name
- String
The key of the annotation to be added.
- value
- Object
The value to be stored in the annotation.
Returns
The newly added annotation.
Implements
Applies to
Entity Framework