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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈