Share via


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

适用于