Click or drag to resize

LiteQueryableT Methods

The LiteQueryableT type exposes the following members.

Methods
 NameDescription
Public methodCount Execute Count methos in filter query
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecuteReader Execute query and returns resultset as generic BsonDataReader
Public methodExists Returns true/false if query returns any result
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 methodFirst Returns first document of resultset
Public methodFirstOrDefault Returns first document of resultset or null if resultset are empty
Public methodForUpdate Execute query locking collection in write mode. This is avoid any other thread change results after read document and before transaction ends
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPlan Get execution plan over current query definition to see how engine will execute query
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGroupBy Groups the documents of resultset according to a specified key selector expression (support only one GroupBy)
Public methodHaving Filter documents after group by pipe according to predicate expression (requires GroupBy and support only one Having)
Public methodInclude(BsonExpression) Load cross reference documents from path expression (DbRef reference)
Public methodInclude(ListBsonExpression) Load cross reference documents from path expression (DbRef reference)
Public methodIncludeK(ExpressionFuncT, K) Load cross reference documents from path expression (DbRef reference)
Public methodInto 
Public methodLimit Return a specified number of contiguous documents from start of resultset
Public methodLongCount Execute Count methos in filter query
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOffset Bypasses a specified number of documents in resultset and retun the remaining documents (same as Skip)
Public methodOrderBy(BsonExpression, Int32) Sort the documents of resultset in ascending (or descending) order according to a key (support only one OrderBy)
Public methodOrderByK(ExpressionFuncT, K, Int32) Sort the documents of resultset in ascending (or descending) order according to a key (support only one OrderBy)
Public methodOrderByDescending(BsonExpression) Sort the documents of resultset in descending order according to a key (support only one OrderBy)
Public methodOrderByDescendingK(ExpressionFuncT, K) Sort the documents of resultset in descending order according to a key (support only one OrderBy)
Public methodSelect(BsonExpression) Transform input document into a new output document. Can be used with each document, group by or all source
Public methodSelectK(ExpressionFuncT, K) Project each document of resultset into a new document/value based on selector expression
Public methodSingle Returns the only document of resultset, and throw an exception if there not exactly one document in the sequence
Public methodSingleOrDefault Returns the only document of resultset, or null if resultset are empty; this method throw an exception if there not exactly one document in the sequence
Public methodSkip Bypasses a specified number of documents in resultset and retun the remaining documents (same as Offset)
Public methodToArray Execute query and return results as an Array
Public methodToDocuments Execute query and return resultset as IEnumerable of documents
Public methodToEnumerable Execute query and return resultset as IEnumerable of T. If T is a ValueType or String, return values only (not documents)
Public methodToList Execute query and return results as a List
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWhere(BsonExpression) Filters a sequence of documents based on a predicate expression
Public methodWhere(ExpressionFuncT, Boolean) Filters a sequence of documents based on a predicate expression
Public methodWhere(String, BsonDocument) Filters a sequence of documents based on a predicate expression
Public methodWhere(String, BsonValue) Filters a sequence of documents based on a predicate expression
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