| | Name | Description |
|---|
 | Count |
Get document count using property on collection.
|
 | Count(BsonExpression) |
Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
|
 | Count(ExpressionFuncT, Boolean) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | Count(Query) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | Count(String, BsonDocument) |
Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
|
 | Count(String, BsonValue) |
Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
|
 | Delete |
Delete a single document on collection based on _id index. Returns true if document was deleted
|
 | DeleteAll |
Delete all documents inside collection. Returns how many documents was deleted. Run inside current transaction
|
 | DeleteMany(BsonExpression) |
Delete all documents based on predicate expression. Returns how many documents was deleted
|
 | DeleteMany(ExpressionFuncT, Boolean) |
Delete all documents based on predicate expression. Returns how many documents was deleted
|
 | DeleteMany(String, BsonDocument) |
Delete all documents based on predicate expression. Returns how many documents was deleted
|
 | DeleteMany(String, BsonValue) |
Delete all documents based on predicate expression. Returns how many documents was deleted
|
 | DropIndex |
Drop index and release slot for another index
|
 | EnsureIndex(BsonExpression, Boolean) |
Create a new permanent index in all documents inside this collections if index not exists already. Returns true if index was created or false if already exits
|
 | EnsureIndex(String, BsonExpression, Boolean) |
Create a new permanent index in all documents inside this collections if index not exists already. Returns true if index was created or false if already exits
|
 | EnsureIndexK(ExpressionFuncT, K, Boolean) |
Create a new permanent index in all documents inside this collections if index not exists already.
|
 | EnsureIndexK(String, ExpressionFuncT, K, Boolean) |
Create a new permanent index in all documents inside this collections if index not exists already.
|
 | Exists(BsonExpression) |
Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
|
 | Exists(ExpressionFuncT, Boolean) |
Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
|
 | Exists(Query) |
Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
|
 | Exists(String, BsonDocument) |
Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
|
 | Exists(String, BsonValue) |
Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
|
 | Find(BsonExpression, Int32, Int32) |
Find documents inside a collection using predicate expression.
|
 | Find(ExpressionFuncT, Boolean, Int32, Int32) |
Find documents inside a collection using predicate expression.
|
 | Find(Query, Int32, Int32) |
Find documents inside a collection using query definition.
|
 | FindAll |
Returns all documents inside collection order by _id index.
|
 | FindById |
Find a document using Document Id. Returns null if not found.
|
 | FindOne(BsonExpression) |
Find the first document using predicate expression. Returns null if not found
|
 | FindOne(ExpressionFuncT, Boolean) |
Find the first document using predicate expression. Returns null if not found
|
 | FindOne(Query) |
Find the first document using defined query structure. Returns null if not found
|
 | FindOne(BsonExpression, BsonValue) |
Find the first document using predicate expression. Returns null if not found
|
 | FindOne(String, BsonDocument) |
Find the first document using predicate expression. Returns null if not found
|
 | Include(BsonExpression) |
Run an include action in each document returned by Find(), FindById(), FindOne() and All() methods to load DbRef documents
Returns a new Collection with this action included
|
 | IncludeK(ExpressionFuncT, K) |
Run an include action in each document returned by Find(), FindById(), FindOne() and All() methods to load DbRef documents
Returns a new Collection with this action included
|
 | Insert(IEnumerableT) |
Insert an array of new documents to this collection. Document Id must be a new value in collection. Can be set buffer size to commit at each N documents
|
 | Insert(T) |
Insert a new entity to this collection. Document Id must be a new value in collection - Returns document Id
|
 | Insert(BsonValue, T) |
Insert a new document to this collection using passed id value.
|
 | InsertBulk |
Implements bulk insert documents in a collection. Usefull when need lots of documents.
|
 | LongCount |
Get document count using property on collection.
|
 | LongCount(BsonExpression) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | LongCount(ExpressionFuncT, Boolean) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | LongCount(Query) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | LongCount(String, BsonDocument) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | LongCount(String, BsonValue) |
Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
|
 | Max |
Returns the max _id index key value
|
 | Max(BsonExpression) |
Returns the max value from specified key value in collection
|
 | MaxK(ExpressionFuncT, K) |
Returns the last/max field using a linq expression
|
 | Min |
Returns the min value of _id index
|
 | Min(BsonExpression) |
Returns the min value from specified key value in collection
|
 | MinK(ExpressionFuncT, K) |
Returns the min value from specified key value in collection
|
 | Query |
Return a new LiteQueryable to build more complex queries
|
 | Update(IEnumerableT) |
Update all documents
|
 | Update(T) |
Update a document in this collection. Returns false if not found document in collection
|
 | Update(BsonValue, T) |
Update a document in this collection. Returns false if not found document in collection
|
 | UpdateMany(BsonExpression, BsonExpression) |
Update many documents based on transform expression. This expression must return a new document that will be replaced over current document (according with predicate).
Eg: col.UpdateMany("{ Name: UPPER($.Name), Age }", "_id > 0")
|
 | UpdateMany(ExpressionFuncT, T, ExpressionFuncT, Boolean) |
Update many document based on merge current document with extend expression. Use your class with initializers.
Eg: col.UpdateMany(x => new Customer { Name = x.Name.ToUpper(), Salary: 100 }, x => x.Name == "John")
|
 | Upsert(IEnumerableT) |
Insert or Update all documents
|
 | Upsert(T) |
Insert or Update a document in this collection.
|
 | Upsert(BsonValue, T) |
Insert or Update a document in this collection.
|