Method FindAllAs
FindAllAs<TDocument>()
Returns a cursor that can be used to find all documents in this collection as TDocuments.
public virtual MongoCursor<TDocument> FindAllAs<TDocument>()
Returns
- MongoCursor<TDocument>
Type Parameters
TDocumentThe nominal type of the documents.
FindAllAs(Type)
Returns a cursor that can be used to find all documents in this collection as TDocuments.
public virtual MongoCursor FindAllAs(Type documentType)
Parameters
documentTypeTypeThe nominal type of the documents.