Data |
public struct DataFilter
The DataFilter type exposes the following members.
Name | Description | |
---|---|---|
HideValues | The setting works in direct correlation with the Values property. If true the values that are passed in will not be shown in the data result, if false then only the filter values that match the criteria will show in the data result. | |
Name | The name of the data filter to use. This value will be documented for each and every service contract that uses the DataFilter name. | |
Values | A generic list of string values. These values are defined by the name of the DataFilter and are different for each and every service call. |
Note |
---|
The DataAction structure and DataFilter structure play similar roles in filtering the data returned from a service call. The big difference is that the DataAction is a direct query to the underlying model, whereas the DataFilter is a post filtration operation that filters data already returned by the service. The DataFilter can still decrease the size of your Results, but the bigger performance increase will be found by using the DataAction structure if a possible query name exists. |
{ //Sub-Sample of the DataFilter "DataFilter":{ "Name":"BY-CODE", "HideValues":true, "Values":["CO"], "Enabled":false } }