TheStorageMirror<(Of <(<'T>)>)>..::..GetRecords Method (String, Int32, Action<(Of <(<'StoreResponse>)>)>, Boolean)
Retrieves records from the StorageMirror's underlying MirrorCache or IStorageService and hands them to the callback.
If IsRAMStore or IsCached, the records will be retrieved from the MirrorCache.
If IsRAMStore is false, the records will be retrieved from the IStorageService.
Namespace:
nsCDEngine.Engines.StorageServiceAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public bool GetRecords( string SQLFilter, int TopRows, Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse> pCallBack, bool LocalCallBackOnly )
Parameters
- SQLFilter
- Type: String
The "WHERE" clause to filter the records returned. Generally the string should consist of the form [PropertyName] [Operation] [Value], e.g. FriendlyName = "MyThing"
- TopRows
- Type: Int32
The maximum number of records to return from the query
- pCallBack
- Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed retrieval of records.
- LocalCallBackOnly
- Type: Boolean
If set to true, no request is sent to a remote StorageService.