EntityDataSource.EnableFlattening Property

.NET Framework (current version)

Gets or sets the value that indicates whether you want to turn off wrapper creation.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

Public Property EnableFlattening As Boolean

Property Value

Type: System.Boolean

True if the properties will be flattened; otherwise false.

When you initialize the EntityDataSource control by using the EntitySetName property, the EntityDataSource wraps each entity instance in the results in an object of the ICustomTypeDescriptor type. For more information, see Flattening Objects (EntityDataSource).

.NET Framework
Available since 4.0
Return to top