Class Query
Represents a query document sent to MongoDB
Inheritance
System.Object
Query
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NFX.MongoDB.dll
Syntax
public class Query : BSONDocument, IJSONWritable, IEnumerable<BSONElement>, IEnumerable
Constructors
Query()
Declaration
Query(Stream)
Declaration
public Query(Stream stream)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
stream |
|
Query(String, Boolean, TemplateArg[])
Creates an instance of the query from JSON template with parameters populated from args optionally caching the template internal
representation. Do not cache templates that change often
Declaration
public Query(string template, bool cacheTemplate, params TemplateArg[] args)
Parameters
| Type |
Name |
Description |
| System.String |
template |
|
| System.Boolean |
cacheTemplate |
|
| TemplateArg[] |
args |
|
Fields
_ID
Declaration
public const string _ID = "_id"
Field Value
| Type |
Description |
| System.String |
|
PROJECTION_ROOT
Declaration
public const string PROJECTION_ROOT = "$NFX-QUERY-PROJECTION"
Field Value
| Type |
Description |
| System.String |
|
Properties
ProjectionSelector
Declaration
public BSONDocument ProjectionSelector { get; set; }
Property Value
Methods
ID_EQ_BYTE_ARRAY(Byte[])
Declaration
public static Query ID_EQ_BYTE_ARRAY(byte[] id)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
id |
|
Returns
ID_EQ_GDID(GDID)
Declaration
public static Query ID_EQ_GDID(GDID id)
Parameters
| Type |
Name |
Description |
| GDID |
id |
|
Returns
ID_EQ_Int32(Int32)
Declaration
public static Query ID_EQ_Int32(int id)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
Returns
ID_EQ_Int32(Int64)
Declaration
public static Query ID_EQ_Int32(long id)
Parameters
| Type |
Name |
Description |
| System.Int64 |
id |
|
Returns
ID_EQ_String(String)
Declaration
public static Query ID_EQ_String(string id)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
Returns
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods