Click or drag to resize

BeforeRequeryHints Enumeration

Hints provided during the MapperBeforeRequery event in BeforeRequeryArgs.Hints.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[FlagsAttribute]
public enum BeforeRequeryHints
Members
  Member nameValueDescription
FilterByRowKey1 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.
FilterAndSortDataTable2 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.

DataFromCache4 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.
See Also