ObjectContextOptions.ProxyCreationEnabled 屬性

定義

取得或設布林值,這個值決定是否對非持續性的自訂資料類別建立 Proxy 執行個體。

public:
 property bool ProxyCreationEnabled { bool get(); void set(bool value); };
public bool ProxyCreationEnabled { get; set; }
member this.ProxyCreationEnabled : bool with get, set
Public Property ProxyCreationEnabled As Boolean

屬性值

如果已建立 Proxy,則為 true,否則為 false。 預設值是 true

適用於