Method | Description | |
---|---|---|
All ( string name ) : |
Tests that the named array element contains all of the values (see $all).
|
|
All ( string name, BsonArray values ) : |
Tests that the named array element contains all of the values (see $all).
|
|
All ( string name, IEnumerable |
Tests that the named array element contains all of the values (see $all).
|
|
And ( ) : |
Tests that all the subqueries are true (see $and in newer versions of the server).
|
|
EQ ( string name, BsonValue value ) : |
Tests that the value of the named element is equal to some value.
|
|
ElemMatch ( string name, IMongoQuery query ) : |
Tests that at least one item of the named array element matches a query (see $elemMatch).
|
|
Exists ( string name, bool exists ) : |
Tests that an element of that name does or does not exist (see $exists).
|
|
GT ( string name, BsonValue value ) : |
Tests that the value of the named element is greater than some value (see $gt).
|
|
GTE ( string name, BsonValue value ) : |
Tests that the value of the named element is greater than or equal to some value (see $gte).
|
|
In ( string name ) : |
Tests that the value of the named element is equal to one of a list of values (see $in).
|
|
In ( string name, BsonArray values ) : |
Tests that the value of the named element is equal to one of a list of values (see $in).
|
|
In ( string name, IEnumerable |
Tests that the value of the named element is equal to one of a list of values (see $in).
|
|
LT ( string name, BsonValue value ) : |
Tests that the value of the named element is less than some value (see $lt).
|
|
LTE ( string name, BsonValue value ) : |
Tests that the value of the named element is less than or equal to some value (see $lte).
|
|
Matches ( string name, BsonRegularExpression regex ) : |
Tests that the value of the named element matches a regular expression (see $regex).
|
|
Mod ( string name, int modulus, int equals ) : |
Tests that the modulus of the value of the named element matches some value (see $mod).
|
|
NE ( string name, BsonValue value ) : |
Tests that the value of the named element is not equal to some value (see $ne).
|
|
Near ( string name, double x, double y ) : |
Tests that the value of the named element is near some location (see $near).
|
|
Near ( string name, double x, double y, double maxDistance ) : |
Tests that the value of the named element is near some location (see $near).
|
|
Near ( string name, double x, double y, double maxDistance, bool spherical ) : |
Tests that the value of the named element is near some location (see $near and $nearSphere).
|
|
Nor ( ) : |
Tests that none of the subqueries is true (see $nor).
|
|
Not ( string name ) : |
Tests that the value of the named element does not match any of the tests that follow (see $not).
|
|
NotIn ( string name ) : |
Tests that the value of the named element is not equal to any of a list of values (see $nin).
|
|
NotIn ( string name, BsonArray values ) : |
Tests that the value of the named element is not equal to any of a list of values (see $nin).
|
|
NotIn ( string name, IEnumerable |
Tests that the value of the named element is not equal to any of a list of values (see $nin).
|
|
Or ( ) : |
Tests that at least one of the subqueries is true (see $or).
|
|
Size ( string name, int size ) : |
Tests that the size of the named array is equal to some value (see $size).
|
|
Type ( string name, BsonType type ) : |
Tests that the type of the named element is equal to some type (see $type).
|
|
Where ( BsonJavaScript javaScript ) : |
Tests that a JavaScript expression is true (see $where).
|
|
WithinCircle ( string name, double centerX, double centerY, double radius ) : |
Tests that the value of the named element is within a circle (see $within and $center).
|
|
WithinCircle ( string name, double centerX, double centerY, double radius, bool spherical ) : |
Tests that the value of the named element is within a circle (see $within and $center/$centerSphere).
|
|
WithinPolygon ( string name, double points ) : |
Tests that the value of the named element is within a polygon (see $within and $polygon).
|
|
WithinRectangle ( string name, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY ) : |
Tests that the value of the named element is within a rectangle (see $within and $box).
|
Method | Description | |
---|---|---|
AddAndClause ( BsonDocument query, BsonElement clause ) : void | ||
PromoteQueryToDollarAndForm ( BsonDocument query, BsonElement clause ) : void |
public static All ( string name ) : |
||
name | string | The name of the element to test. |
return |
public static All ( string name, BsonArray values ) : |
||
name | string | The name of the element to test. |
values | BsonArray | The values to compare to. |
return |
public static All ( string name, IEnumerable |
||
name | string | The name of the element to test. |
values | IEnumerable |
The values to compare to (nulls are ignored). |
return |
public static EQ ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static ElemMatch ( string name, IMongoQuery query ) : |
||
name | string | The name of the element to test. |
query | IMongoQuery | The query to match elements with. |
return |
public static Exists ( string name, bool exists ) : |
||
name | string | The name of the element to test. |
exists | bool | Whether to test for the existence or absence of an element. |
return |
public static GT ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static GTE ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static In ( string name ) : |
||
name | string | The name of the element to test. |
return |
public static In ( string name, BsonArray values ) : |
||
name | string | The name of the element to test. |
values | BsonArray | The values to compare to. |
return |
public static In ( string name, IEnumerable |
||
name | string | The name of the element to test. |
values | IEnumerable |
The values to compare to (nulls are ignored). |
return |
public static LT ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static LTE ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static Matches ( string name, BsonRegularExpression regex ) : |
||
name | string | The name of the element to test. |
regex | BsonRegularExpression | The regular expression to match against. |
return |
public static Mod ( string name, int modulus, int equals ) : |
||
name | string | The name of the element to test. |
modulus | int | The modulus. |
equals | int | The value to compare to. |
return |
public static NE ( string name, BsonValue value ) : |
||
name | string | The name of the element to test. |
value | BsonValue | The value to compare to. |
return |
public static Near ( string name, double x, double y ) : |
||
name | string | The name of the element to test. |
x | double | The x value of the origin. |
y | double | The y value of the origin. |
return |
public static Near ( string name, double x, double y, double maxDistance ) : |
||
name | string | The name of the element to test. |
x | double | The x value of the origin. |
y | double | The y value of the origin. |
maxDistance | double | The max distance for a document to be included in the results. |
return |
public static Near ( string name, double x, double y, double maxDistance, bool spherical ) : |
||
name | string | The name of the element to test. |
x | double | The x value of the origin. |
y | double | The y value of the origin. |
maxDistance | double | The max distance for a document to be included in the results. |
spherical | bool | Whether to do a spherical search. |
return |
public static Not ( string name ) : |
||
name | string | The name of the element to test. |
return |
public static NotIn ( string name ) : |
||
name | string | The name of the element to test. |
return |
public static NotIn ( string name, BsonArray values ) : |
||
name | string | The name of the element to test. |
values | BsonArray | The values to compare to. |
return |
public static NotIn ( string name, IEnumerable |
||
name | string | The name of the element to test. |
values | IEnumerable |
The values to compare to (nulls are ignored). |
return |
public static Size ( string name, int size ) : |
||
name | string | The name of the element to test. |
size | int | The size to compare to. |
return |
public static Type ( string name, BsonType type ) : |
||
name | string | The name of the element to test. |
type | BsonType | The type to compare to. |
return |
public static Where ( BsonJavaScript javaScript ) : |
||
javaScript | BsonJavaScript | The where clause. |
return |
public static WithinCircle ( string name, double centerX, double centerY, double radius ) : |
||
name | string | The name of the element to test. |
centerX | double | The x coordinate of the origin. |
centerY | double | The y coordinate of the origin. |
radius | double | The radius of the circle. |
return |
public static WithinCircle ( string name, double centerX, double centerY, double radius, bool spherical ) : |
||
name | string | The name of the element to test. |
centerX | double | The x coordinate of the origin. |
centerY | double | The y coordinate of the origin. |
radius | double | The radius of the circle. |
spherical | bool | Whether to do a spherical search. |
return |
public static WithinPolygon ( string name, double points ) : |
||
name | string | The name of the element to test. |
points | double | An array of points that defines the polygon (the second dimension must be of length 2). |
return |
public static WithinRectangle ( string name, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY ) : |
||
name | string | The name of the element to test. |
lowerLeftX | double | The x coordinate of the lower left corner. |
lowerLeftY | double | The y coordinate of the lower left corner. |
upperRightX | double | The x coordinate of the upper right corner. |
upperRightY | double | The y coordinate of the upper right corner. |
return |