Aracılığıyla paylaş


MutableAnnotatableExtensions.GetOrAddAnnotation Yöntem

Tanım

Mevcut ek açıklamayı belirli bir anahtarla alır veya yoksa yeni bir ek açıklama ekler.

public static Microsoft.EntityFrameworkCore.Infrastructure.Annotation GetOrAddAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string annotationName, string value);
static member GetOrAddAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string * string -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
<Extension()>
Public Function GetOrAddAnnotation (annotatable As IMutableAnnotatable, annotationName As String, value As String) As Annotation

Parametreler

annotatable
IMutableAnnotatable

Ek açıklamayı bulmak veya eklemek için nesne.

annotationName
String

Bulunacak veya eklenecek ek açıklamanın anahtarı.

value
String

Yeni bir tane oluşturulursa ek açıklamaya depolanacak değer.

Döndürülenler

Bulunan veya eklenen ek açıklama.

Şunlara uygulanır