EntityDataSource.EntityTypeFilter EntityDataSource.EntityTypeFilter EntityDataSource.EntityTypeFilter EntityDataSource.EntityTypeFilter Property

Definition

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

public:
 property System::String ^ EntityTypeFilter { System::String ^ get(); void set(System::String ^ value); };
public string EntityTypeFilter { get; set; }
member this.EntityTypeFilter : string with get, set
Public Property EntityTypeFilter As String

Property Value

The filter expression.

Remarks

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 ObjectQuery<T>.OfType<TResultType>() method to the System.Data.Objects.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 the entity set.

Applies to