Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EntityDataSource.EnableFlattening Property

.NET Framework 4.6 and 4.5

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 bool EnableFlattening { 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

Supported in: 4.6, 4.5, 4
© 2015 Microsoft