BeforeRequeryHints Enumeration |
Namespace: NetQuarry.Data
Member name | Value | Description | |
---|---|---|---|
FilterByRowKey | 1 | The mapper is about to be requeried filtered on the current record's RowKey. In such a case a single record is normally expected, or zero if for some reason that item falls out of the query, but multiple records are not expected. | |
FilterAndSortDataTable | 2 |
Tells the mapper that its DataTable should be filtered and sorted using the mapper's current Filters
and OrderBy values. Filtering and sorting is performed using a .Net System.Data.DataView object.
This hint is only meaningful when the mapper is provided with a DataTable either by an extension in BeforeRequeryArgs.Data during the MapperBeforeRequery event, or during Load(DataTable, MapperLoadFlags) where MapperLoadFlags.Data is set. Note that System.Data.DataView filtering syntax differs slightly from other data sources (including SQL-Server) so this hint should be applied only if DataProvided is set BEFORE any filters are constructed by the mapper's fields. | |
DataFromCache | 4 | The mapper has already obtained the operational data from cache. That data is available in Data and its cache date is in CacheDate. If no action is taken that data will be used by the mapper. Set Data to override the data. Note that typically the MapperBeforeRequery event is not even fired when caching is enabled and DataProvided is set unless a cache-miss occurs or ForceMapperBeforeRequery is set. |