EntityDataSource.EntityTypeFilter Property

 

Gets or sets the expression that limits the query to only results of a specific derived type.

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

public string EntityTypeFilter { get; set; }

Property Value

Type: System.String

The filter expression.

When the EntityDataSource control must return a specific derived type, the EntityTypeFilter property must also be set to specify the name of this derived type. If the EntitySetName property specifies an entity set that can generate polymorphic results, the EntityTypeFilter property is required to be able to edit data. This has the same effect as applying the OfType<TResultType> method to the ObjectQuery<T>. If the data binding is read-only, then the EntityTypeFilter property is not required. In this case, the properties of the object returned by the query will be those of the default entity type for theentity set.

.NET Framework
Available since 3.5
Return to top
Show: