Collection FindAndFetchAll Method NFX Class Library

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

Finds all documents that match the supplied query, optionally skipping some. Fetches and returns all documents as a list. Be careful not to fetch too many

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

public List<BSONDocument> FindAndFetchAll(
	Query query,
	int skipCount = 0,
	int cursorFetchLimit = 0,
	int fetchBy = 0,
	BSONDocument selector = null
)

Parameters

query
Type: NFX.DataAccess.MongoDB.Connector Query
Query to match against
skipCount (Optional)
Type: OnlineSystem Int32
How many documents to skip at the beginning
cursorFetchLimit (Optional)
Type: OnlineSystem Int32
Impose a limit on total number of fetched docs
fetchBy (Optional)
Type: OnlineSystem Int32
Size of fetch block
selector (Optional)
Type: NFX.Serialization.BSON BSONDocument
Optional field mapping document like: {"field_name": 1}

Return Value

Type: OnlineList BSONDocument 
A list of documents (may be empty)
See Also