ConventionTypeBaseExtensions.SetPropertyAccessMode(IConventionTypeBase, Nullable<PropertyAccessMode>, Boolean) Yöntem

Tanım

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

Bireysel Özellikler ve gezinmeler bu erişim modunu geçersiz kılabileceğini unutmayın. Burada ayarlanan değer, geçersiz kılma belirtilmemiş herhangi bir özellik veya gezinti için kullanılacaktır.

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.PropertyAccessMode? SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> unit
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IConventionTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetPropertyAccessMode (entityType As IConventionTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As Nullable(Of PropertyAccessMode)

Parametreler

entityType
IConventionTypeBase

İçin erişim modu ayarlanacak tür.

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModeVeya null mod kümesini temizlemek için.

fromDataAnnotation
Boolean

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

Döndürülenler

Nullable<PropertyAccessMode>

Yapılandırılan değer.

Şunlara uygulanır