AnnotatableBase.AddAnnotations Method

Definition

Overloads

AddAnnotations(IEnumerable<IAnnotation>)

Adds annotations to this object.

AddAnnotations(IReadOnlyDictionary<String,Object>)

Adds annotations to this object.

AddAnnotations(IEnumerable<IAnnotation>)

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

Adds annotations to this object.

C#
public virtual void AddAnnotations (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);

Parameters

annotations
IEnumerable<IAnnotation>

The annotations to be added.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

AddAnnotations(IReadOnlyDictionary<String,Object>)

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

Adds annotations to this object.

C#
public virtual void AddAnnotations (System.Collections.Generic.IReadOnlyDictionary<string,object?> annotations);

Parameters

annotations
IReadOnlyDictionary<String,Object>

The annotations to be added.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0