ConventionPropertyBaseExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use IConventionPropertyBase
的 IConventionPropertyBase擴展方法 。
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
- 繼承
-
ConventionPropertyBaseExtensions
- 屬性
方法
| 名稱 | Description |
|---|---|
| GetPropertyAccessModeConfigurationSource(IConventionPropertyBase) |
已淘汰.
回傳 的 GetPropertyAccessMode()配置來源。 |
| SetField(IConventionPropertyBase, String, Boolean) |
已淘汰.
設定該屬性應使用的底層 CLR 欄位。
這可能是 背襯場通常依約定方式求得,如下所述: http://go.microsoft.com/fwlink/?LinkId=723277. 此方法對於在慣例下找不到正確欄位時,明確設定支持欄位非常有用。 預設情況下,如果找到或指定了後盾欄位,則在建構新物件時會使用,通常是在從資料庫查詢實體時。 所有其他進出通道皆使用物業。 此參數可透過呼叫 SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean)來改變。 |
| SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean) |
已淘汰.
設定 使用 這個 PropertyAccessMode 屬性。 |