ConventionPropertyBaseExtensions Sınıf

Tanım

Dikkat

Use IConventionPropertyBase

için uzantı IConventionPropertyBase yöntemleri.

public static class ConventionPropertyBaseExtensions
[System.Obsolete("Use IConventionPropertyBase")]
public static class ConventionPropertyBaseExtensions
type ConventionPropertyBaseExtensions = class
[<System.Obsolete("Use IConventionPropertyBase")>]
type ConventionPropertyBaseExtensions = class
Public Module ConventionPropertyBaseExtensions
Public Class ConventionPropertyBaseExtensions
Devralma
ConventionPropertyBaseExtensions
Öznitelikler

Yöntemler

GetPropertyAccessModeConfigurationSource(IConventionPropertyBase)

için yapılandırma kaynağını GetPropertyAccessMode() döndürür.

SetField(IConventionPropertyBase, String, Boolean)

Bu özelliğin kullanması gereken temel CLR alanını ayarlar. Bu, gölge özellikler için null olabilir veya özelliğin destek alanı bilinmemektedir.

Destek alanları normalde burada açıklandığı gibi kurala göre bulunur: http://go.microsoft.com/fwlink/?LinkId=723277 . Bu yöntem, kurala göre doğru alanın bulunamaması durumlarında, destek alanlarını açıkça ayarlamada yararlıdır.

Varsayılan olarak, bir nesne bulunursa veya belirtilmişse, genellikle varlıklar veritabanından sorgulanan yeni nesneler oluşturulurken backing alanı kullanılır. Özellikler diğer tüm erişimler için kullanılır. Bu, çağrılarak SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean) değiştirilebilir.

SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean)

Bu özellik PropertyAccessMode için kullanmak üzere ayarlar.

Şunlara uygulanır