Język

RuntimeAnnotatableBase.AddAnnotation(String, Object) Metoda

Definicja

Dodaje adnotację do tego obiektu. Zgłasza, czy adnotacja o określonej nazwie już istnieje.

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

Parametry

name
String

Klucz adnotacji do dodania.

value
Object

Wartość, która ma być przechowywana w adnotacji.

Zwraca

Nowo dodana adnotacja.

Dotyczy