Annotatable.AddAnnotation Method
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.
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. |
- 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
Entity Framework Core 5.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0 |
- 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 Core 5.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: