Method FetchDBRefAs
FetchDBRefAs<TDocument>(MongoDBRef)
Fetches the document referred to by the DBRef, deserialized as a TDocument.
public virtual TDocument FetchDBRefAs<TDocument>(MongoDBRef dbRef)
Parameters
dbRefMongoDBRefThe MongoDBRef to fetch.
Returns
- TDocument
A
TDocument(or null if the document was not found).
Type Parameters
TDocumentThe nominal type of the document to fetch.
FetchDBRefAs(Type, MongoDBRef)
Fetches the document referred to by the DBRef.
public virtual object FetchDBRefAs(Type documentType, MongoDBRef dbRef)
Parameters
documentTypeTypeThe nominal type of the document to fetch.
dbRefMongoDBRefThe MongoDBRef to fetch.
Returns
- object
The document (or null if the document was not found).