共用方式為


ObjectContextOptions.ProxyCreationEnabled 屬性

定義

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

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

屬性值

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

適用於