Aracılığıyla paylaş


AnnotatableBuilder<TMetadata,TModelBuilder>.CanSetAnnotation Yöntem

Tanım

Verilen ad ve değere sahip bir ek açıklamanın bu yapılandırma kaynağından ayarlanıp ayarlanamayacağını belirten bir değer döndürür.

public virtual bool CanSetAnnotation(string name, object value, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
public virtual bool CanSetAnnotation(string name, object? value, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
abstract member CanSetAnnotation : string * obj * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> bool
override this.CanSetAnnotation : string * obj * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> bool
Public Overridable Function CanSetAnnotation (name As String, value As Object, configurationSource As ConfigurationSource) As Boolean

Parametreler

name
String

Eklenecek ek açıklamanın adı.

value
Object

Ek açıklamaya depolanacak değer.

configurationSource
ConfigurationSource

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

Döndürülenler

true ek açıklama ayarlanabilirse, false aksi takdirde.

Şunlara uygulanır