Annotatable.AddAnnotation Method

Definition

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.

C#
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation 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

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.

C#
public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, object value);

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