共用方式為


EntityDataSource.EnableFlattening 屬性

定義

取得或設定值,這個值表示您是否要關閉建立包裝函式。

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

屬性值

true 如果屬性會扁平化,則為 ;否則為 false

備註

當您使用 EntitySetName 屬性初始化 EntityDataSource 控制項時,會將 EntityDataSource 每個實體實例包裝在 型別的物件 ICustomTypeDescriptor 中。 如需詳細資訊,請參閱 將物件扁平化 (EntityDataSource)

適用於