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

Tanım

PropertyAccessModeBu varlık türünün tüm özellikleri için kullanılacak öğesini ayarlar.

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

Parametreler

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModeBu varlık türünün özellikleri için kullanılacak. null varsayılana sıfırlayın.

fromDataAnnotation
Boolean

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

Döndürülenler

IConventionEntityTypeBuilder

Birden çok yapılandırma çağrısının zincirlenebilir olması için aynı Oluşturucu örneği.

Şunlara uygulanır