IConventionServicePropertyBuilder.UsePropertyAccessMode(Nullable<PropertyAccessMode>, Boolean) Yöntem

Tanım

PropertyAccessModeBu özellik için kullanılacak öğesini ayarlar.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionServicePropertyBuilder UsePropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionServicePropertyBuilder? UsePropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member UsePropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionServicePropertyBuilder
Public Function UsePropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As IConventionServicePropertyBuilder

Parametreler

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModeBu özellik için kullanılacak.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak mı belirtilmediğini belirtir.

Döndürülenler

IConventionServicePropertyBuilder

Yapılandırma uygulanmışsa aynı Oluşturucu örneği, null tersi durumda.

Şunlara uygulanır