C# Class MongoDB.Driver.Builders.QueryConditionList

Inheritance: QueryComplete
Show file Open project: Qiredev/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
All ( ) : QueryConditionList

Adds a $all test to the query.

All ( IEnumerable values ) : QueryConditionList

Adds a $all test to the query.

ElemMatch ( IMongoQuery query ) : QueryConditionList

Adds an $elemMatch test to the query.

Exists ( bool exists ) : QueryConditionList

Adds a $exist test to the query.

GT ( BsonValue value ) : QueryConditionList

Adds a $gt test to the query.

GTE ( BsonValue value ) : QueryConditionList

Adds a $gte test to the query.

In ( ) : QueryConditionList

Adds a $in test to the query.

In ( IEnumerable values ) : QueryConditionList

Adds a $in test to the query.

LT ( BsonValue value ) : QueryConditionList

Adds a $lt test to the query.

LTE ( BsonValue value ) : QueryConditionList

Adds a $lte test to the query.

Mod ( int modulus, int equals ) : QueryConditionList

Adds a $mod test to the query.

NE ( BsonValue value ) : QueryConditionList

Adds a $ne test to the query.

Near ( double x, double y ) : QueryConditionList

Adds a $near test to the query.

Near ( double x, double y, double maxDistance ) : QueryConditionList

Adds a $near test to the query.

Near ( double x, double y, double maxDistance, bool spherical ) : QueryConditionList

Adds a $near or $nearSphere test to the query.

NotIn ( ) : QueryConditionList

Adds a $nin test to the query.

NotIn ( IEnumerable values ) : QueryConditionList

Adds a $nin test to the query.

QueryConditionList ( string name ) : System

Initializes a new instance of the QueryConditionList class.

Size ( int size ) : QueryConditionList

Adds a $size test to the query.

Type ( BsonType type ) : QueryConditionList

Adds a $type test to the query.

WithinCircle ( double x, double y, double radius ) : QueryConditionList

Adds a $within/$center test to the query.

WithinCircle ( double x, double y, double radius, bool spherical ) : QueryConditionList

Adds a $within/$center or $within/$centerSphere test to the query.

WithinRectangle ( double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY ) : QueryConditionList

Adds a $within/$box test to the query.

Method Details

All() public method

Adds a $all test to the query.
public All ( ) : QueryConditionList
return QueryConditionList

All() public method

Adds a $all test to the query.
public All ( IEnumerable values ) : QueryConditionList
values IEnumerable A BsonArray of values.
return QueryConditionList

ElemMatch() public method

Adds an $elemMatch test to the query.
public ElemMatch ( IMongoQuery query ) : QueryConditionList
query IMongoQuery The query to match elements with.
return QueryConditionList

Exists() public method

Adds a $exist test to the query.
public Exists ( bool exists ) : QueryConditionList
exists bool Whether to test for the existence or absence of an element.
return QueryConditionList

GT() public method

Adds a $gt test to the query.
public GT ( BsonValue value ) : QueryConditionList
value BsonValue The value to compare to.
return QueryConditionList

GTE() public method

Adds a $gte test to the query.
public GTE ( BsonValue value ) : QueryConditionList
value BsonValue The value to compare to.
return QueryConditionList

In() public method

Adds a $in test to the query.
public In ( ) : QueryConditionList
return QueryConditionList

In() public method

Adds a $in test to the query.
public In ( IEnumerable values ) : QueryConditionList
values IEnumerable A BsonArray of values.
return QueryConditionList

LT() public method

Adds a $lt test to the query.
public LT ( BsonValue value ) : QueryConditionList
value BsonValue The value to compare to.
return QueryConditionList

LTE() public method

Adds a $lte test to the query.
public LTE ( BsonValue value ) : QueryConditionList
value BsonValue The value to compare to.
return QueryConditionList

Mod() public method

Adds a $mod test to the query.
public Mod ( int modulus, int equals ) : QueryConditionList
modulus int The modulus.
equals int The value to compare to.
return QueryConditionList

NE() public method

Adds a $ne test to the query.
public NE ( BsonValue value ) : QueryConditionList
value BsonValue The value to compare to.
return QueryConditionList

Near() public method

Adds a $near test to the query.
public Near ( double x, double y ) : QueryConditionList
x double The x value of the origin.
y double The y value of the origin.
return QueryConditionList

Near() public method

Adds a $near test to the query.
public Near ( double x, double y, double maxDistance ) : QueryConditionList
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 QueryConditionList

Near() public method

Adds a $near or $nearSphere test to the query.
public Near ( double x, double y, double maxDistance, bool spherical ) : QueryConditionList
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 QueryConditionList

NotIn() public method

Adds a $nin test to the query.
public NotIn ( ) : QueryConditionList
return QueryConditionList

NotIn() public method

Adds a $nin test to the query.
public NotIn ( IEnumerable values ) : QueryConditionList
values IEnumerable A BsonArray of values.
return QueryConditionList

QueryConditionList() public method

Initializes a new instance of the QueryConditionList class.
public QueryConditionList ( string name ) : System
name string The name of the element to be tested.
return System

Size() public method

Adds a $size test to the query.
public Size ( int size ) : QueryConditionList
size int The size of the array.
return QueryConditionList

Type() public method

Adds a $type test to the query.
public Type ( BsonType type ) : QueryConditionList
type BsonType The type.
return QueryConditionList

WithinCircle() public method

Adds a $within/$center test to the query.
public WithinCircle ( double x, double y, double radius ) : QueryConditionList
x double The x coordinate of the origin.
y double The y coordinate of the origin.
radius double The radius of the circle.
return QueryConditionList

WithinCircle() public method

Adds a $within/$center or $within/$centerSphere test to the query.
public WithinCircle ( double x, double y, double radius, bool spherical ) : QueryConditionList
x double The x coordinate of the origin.
y double The y coordinate of the origin.
radius double The radius of the circle.
spherical bool Whether to do a spherical search.
return QueryConditionList

WithinRectangle() public method

Adds a $within/$box test to the query.
public WithinRectangle ( double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY ) : QueryConditionList
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 QueryConditionList