ObjectContextOptions.ProxyCreationEnabled 属性

定义

获取或设置一个布尔值,该值确定是否为持久性无知的自定义数据类创建代理实例。

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

属性值

true 如果创建了代理,则为否则,为 false. 默认值为 true

适用于