Share via


AnnotatableBase.AddRuntimeAnnotation Method

Definition

Overloads

AddRuntimeAnnotation(String, Annotation)

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

AddRuntimeAnnotation(String, Object)

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

AddRuntimeAnnotation(String, Annotation)

Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddRuntimeAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation);
abstract member AddRuntimeAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddRuntimeAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function AddRuntimeAnnotation (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

AddRuntimeAnnotation(String, Object)

Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs
Source:
AnnotatableBase.cs

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddRuntimeAnnotation (string name, object? value);
abstract member AddRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function AddRuntimeAnnotation (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.

Applies to