EntityDataSource.EnableFlattening Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

member EnableFlattening : bool with get, set

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