語言

ObjectContextOptions.ProxyCreationEnabled 屬性

定義

取得或設定一個布林值,判斷代理實例是否被建立給無持久性無知的自訂資料類別。

public bool ProxyCreationEnabled { get; set; }
member this.ProxyCreationEnabled : bool with get, set
Public Property ProxyCreationEnabled As Boolean

屬性值

若產生代理,則為真;否則,則為錯誤。 預設值為 True。

適用於