ConventionAnnotatable.AddAnnotation(String, Object, ConfigurationSource) Yöntem

Tanım

Verilen yapılandırma kaynağını kullanarak bu nesneye verilen anahtar ve değerle bir ek açıklama ekler. Belirtilen adla bir ek açıklama zaten varsa atar.

public virtual Microsoft.EntityFrameworkCore.Metadata.Internal.ConventionAnnotation AddAnnotation (string name, object value, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
public virtual Microsoft.EntityFrameworkCore.Metadata.Internal.ConventionAnnotation AddAnnotation (string name, object? value, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
override this.AddAnnotation : string * obj * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Metadata.Internal.ConventionAnnotation
Public Overridable Function AddAnnotation (name As String, value As Object, configurationSource As ConfigurationSource) As ConventionAnnotation

Parametreler

name
String

Eklenecek ek açıklamanın anahtarı.

value
Object

Ek açıklamaya depolanmış değer.

configurationSource
ConfigurationSource

Eklenecek ek açıklamanın yapılandırma kaynağı.

Döndürülenler

Microsoft.EntityFrameworkCore.Metadata.Internal.ConventionAnnotation

Eklenen ek açıklama.

Şunlara uygulanır