Query Methods |
The Query type exposes the following members.
| Name | Description | |
|---|---|---|
| All | Returns all documents | |
| All(Int32) | Returns all documents | |
| All(String, Int32) | Returns all documents | |
| And(BsonExpression) | Returns document that exists in ALL queries results. | |
| And(BsonExpression, BsonExpression) | Returns document that exists in BOTH queries results. If both queries has indexes, left query has index preference (other side will be run in full scan) | |
| Any | Get all operands to works with array or enumerable values | |
| Between | Returns all document that values are between "start" and "end" values (BETWEEN) | |
| Contains | Returns all documents that contains value (CONTAINS) - string Contains | |
| EQ | Returns all documents that value are equals to value (=) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| GT | Returns all document that value are greater than value (>) | |
| GTE | Returns all documents that value are greater than or equals value (>=) | |
| In(String, BsonArray) | Returns all documents that has value in values list (IN) | |
| In(String, BsonValue) | Returns all documents that has value in values list (IN) | |
| In(String, IEnumerableBsonValue) | Returns all documents that has value in values list (IN) | |
| LT | Returns all documents that value are less than value (<) | |
| LTE | Returns all documents that value are less than or equals value (<=) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Not | Returns all documents that are not equals to value (not equals) | |
| Or(BsonExpression) | Returns document that exists in ANY queries results (Union). | |
| Or(BsonExpression, BsonExpression) | Returns documents that exists in ANY queries results (Union). | |
| StartsWith | Returns all documents that starts with value (LIKE) | |
| ToSQL | [ EXPLAIN ] SELECT {selectExpr} [ INTO {newcollection|$function} [ : {autoId} ] ] [ FROM {collection|$function} ] [ INCLUDE {pathExpr0} [, {pathExprN} ] [ WHERE {filterExpr} ] [ GROUP BY {groupByExpr} ] [ HAVING {filterExpr} ] [ ORDER BY {orderByExpr} [ ASC | DESC ] ] [ LIMIT {number} ] [ OFFSET {number} ] [ FOR UPDATE ] | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |