Click or drag to resize

Query Methods

The Query type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAll Returns all documents
Public methodStatic memberAll(Int32) Returns all documents
Public methodStatic memberAll(String, Int32) Returns all documents
Public methodStatic memberAnd(BsonExpression) Returns document that exists in ALL queries results.
Public methodStatic memberAnd(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)
Public methodStatic memberAny Get all operands to works with array or enumerable values
Public methodStatic memberBetween Returns all document that values are between "start" and "end" values (BETWEEN)
Public methodStatic memberContains Returns all documents that contains value (CONTAINS) - string Contains
Public methodStatic memberEQ Returns all documents that value are equals to value (=)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberGT Returns all document that value are greater than value (>)
Public methodStatic memberGTE Returns all documents that value are greater than or equals value (>=)
Public methodStatic memberIn(String, BsonArray) Returns all documents that has value in values list (IN)
Public methodStatic memberIn(String, BsonValue) Returns all documents that has value in values list (IN)
Public methodStatic memberIn(String, IEnumerableBsonValue) Returns all documents that has value in values list (IN)
Public methodStatic memberLT Returns all documents that value are less than value (<)
Public methodStatic memberLTE Returns all documents that value are less than or equals value (<=)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNot Returns all documents that are not equals to value (not equals)
Public methodStatic memberOr(BsonExpression) Returns document that exists in ANY queries results (Union).
Public methodStatic memberOr(BsonExpression, BsonExpression) Returns documents that exists in ANY queries results (Union).
Public methodStatic memberStartsWith Returns all documents that starts with value (LIKE)
Public methodToSQL [ 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 ]
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also