Method AsQueryable
AsQueryable<T>(MongoCollection)
Returns an instance of IQueryable{{T}} for a MongoCollection.
public static IQueryable<T> AsQueryable<T>(this MongoCollection collection)
Parameters
collectionMongoCollectionThe name of the collection.
Returns
- IQueryable<T>
An instance of IQueryable{{T}} for a MongoCollection.
Type Parameters
TThe type of the returned documents.
AsQueryable<T>(MongoCollection<T>)
Returns an instance of IQueryable{{T}} for a MongoCollection.
public static IQueryable<T> AsQueryable<T>(this MongoCollection<T> collection)
Parameters
collectionMongoCollection<T>The name of the collection.
Returns
- IQueryable<T>
An instance of IQueryable{{T}} for a MongoCollection.
Type Parameters
TThe type of the returned documents.