IBank QueryAsync Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Async version: Loads result object by executing a query command in the bank backend fetching necessary parcels/records/documents and aggregating the result. The query may return parcel/s that can be modified and saved back into the store

Namespace: NFX.DataAccess.Distributed
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

Task<Object> QueryAsync(
	Command command,
	DataVeracity veracity = DataVeracity.Maximum,
	DataCaching cacheOpt = DataCaching.LatestData,
	Nullable<int> cacheMaxAgeSec = null,
	ISession session = null
)

Parameters

command
Type: NFX.DataAccess.Distributed Command
The command object that contains command name and parameters to query the datastore
veracity (Optional)
Type: NFX.DataAccess.Distributed DataVeracity
The level of data veracity
cacheOpt (Optional)
Type: NFX.DataAccess.Distributed DataCaching
The cache control options
cacheMaxAgeSec (Optional)
Type: OnlineSystem Nullable OnlineInt32 
The maximum acceptable age of cached instance, cached data will be re-queried from backend if it is older
session (Optional)
Type: NFX.ApplicationModel ISession
User session, if null session will be taken from execution context. The session may be needed for policy filtering

Return Value

Type: OnlineTask OnlineObject 
See Also