EntityDataSource.EntityTypeFilter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om