Aracılığıyla paylaş


IConventionTypeBase.SetPropertyAccessMode Yöntem

Tanım

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

public virtual Microsoft.EntityFrameworkCore.PropertyAccessMode? SetPropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member SetPropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
override this.SetPropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
Public Overridable Function SetPropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As Nullable(Of PropertyAccessMode)

Parametreler

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModemod kümesini temizlemek için veya null .

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırılan değer.

Açıklamalar

Tek tek özelliklerin ve gezintilerin 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ılır.

Şunlara uygulanır