C# 클래스 CSMongo.Query.MongoQuery

Handles building a query and generating records
상속: MongoQueryBase
파일 보기 프로젝트 열기: hugoware/CSMongo

공개 메소드들

메소드 설명
All ( string field ) : MongoQuery

Finds fields that match all value within the record

All ( string field, IEnumerable values ) : MongoQuery

Finds fields that match all value within the record

AppendParameter ( string field, string modifier, object value ) : MongoQuery

Allows you to append a query option using the Mongo syntax

Count ( ) : long

Determines the total count of records matching this query

Delete ( ) : void

Performs a selection of all fields matching the query

EqualTo ( string field, object value ) : MongoQuery

Finds all records that are equal to the value provided

Exists ( string field ) : MongoQuery

Finds records that the requested field exists in

FindById ( MongoOid id ) : MongoQuery

Finds a record based on the Oid value

FindById ( byte id ) : MongoQuery

Finds a record based on the Oid value

FindById ( string id ) : MongoQuery

Finds a record based on the Oid value

Greater ( string field, object value ) : MongoQuery

Finds all records greater than the provided value

GreaterOrEqual ( string field, object value ) : MongoQuery

Finds all records greater than or equal to the provided value

In ( string field ) : MongoQuery

Finds fields that match any value within the record

In ( string field, IEnumerable values ) : MongoQuery

Finds fields that match any value within the record

Increment ( ) : void

Increments each of the fields provided by one

Increment ( BsonDocument document ) : void

Increments each of the fields by the number provides - first converting the value to an integer

Increment ( object parameters ) : void

Increments each of the fields by the number provides - first converting the value to an integer

Less ( string field, object value ) : MongoQuery

Finds all records less than the provided value

LessOrEqual ( string field, object value ) : MongoQuery

Finds all records less than or equal to the provided value

Match ( string field, Regex expression ) : MongoQuery

Finds all records that match the provided expression

Match ( string field, string expression ) : MongoQuery

Finds all records that match the provided expression

Match ( string field, string expression, RegexOptions options ) : MongoQuery

Finds all records that match the provided expression

Mod ( string field, int value ) : MongoQuery

Performs a modulo comparison (field % value == 1)

Mod ( string field, int value, int compare ) : MongoQuery

Performs a modulo comparison (field % value == compare)

MongoQuery ( MongoCollection collection ) : System

Creates a new query for this database

MongoQuery ( MongoDatabase database, string collection ) : System

Creates a new query for this database

NotEqualTo ( string field, object value ) : MongoQuery

Finds all records that are not equal to the value provided

NotExists ( string field ) : MongoQuery

Finds records that the requested field does not exist in

NotIn ( string field ) : MongoQuery

Finds fields that haven't any matches within the array

NotIn ( string field, IEnumerable values ) : MongoQuery

Finds fields that haven't any matches within the collection

Select ( ) : IEnumerable

Selects the records from the database that matches this query

Select ( QueryOptionTypes options ) : IEnumerable

Selects the records from the database that matches this query

Select ( int skip, int take ) : IEnumerable

Selects the records from the database that matches this query

Select ( int skip, int take, QueryOptionTypes options ) : IEnumerable

Selects the records from the database that matches this query

SelectOne ( ) : MongoDocument

Selects only one document with the provided parameters

SelectOne ( QueryOptionTypes options ) : MongoDocument

Selects only one document with the provided parameters

SelectOne ( int skip ) : MongoDocument

Selects only one document with the provided parameters

SelectOne ( int skip, QueryOptionTypes options ) : MongoDocument

Selects only one document with the provided parameters

Set ( BsonDocument document ) : void

Updates all matching records with the values on the provided BsonDocument or adds the new item to object entirely

Set ( object changes ) : void

Updates all matching records with the values on the provided object or adds the new item to object entirely

Size ( string field, int size ) : MongoQuery

Finds fields that match all value within the record

Unset ( ) : void

Removes all matching fields from each document in the query

Where ( string script ) : MongoQuery

Writes a manual function to persom a comparison on the server

Where ( string script, bool wrapWithFunction ) : MongoQuery

Writes a manual function to perform a comparison on the server

비공개 메소드들

메소드 설명
_SendUpdate ( string type, UpdateOptionTypes options, BsonDocument changes ) : void

메소드 상세

All() 공개 메소드

Finds fields that match all value within the record
public All ( string field ) : MongoQuery
field string
리턴 MongoQuery

All() 공개 메소드

Finds fields that match all value within the record
public All ( string field, IEnumerable values ) : MongoQuery
field string
values IEnumerable
리턴 MongoQuery

AppendParameter() 공개 메소드

Allows you to append a query option using the Mongo syntax
public AppendParameter ( string field, string modifier, object value ) : MongoQuery
field string
modifier string
value object
리턴 MongoQuery

Count() 공개 메소드

Determines the total count of records matching this query
public Count ( ) : long
리턴 long

Delete() 공개 메소드

Performs a selection of all fields matching the query
public Delete ( ) : void
리턴 void

EqualTo() 공개 메소드

Finds all records that are equal to the value provided
public EqualTo ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

Exists() 공개 메소드

Finds records that the requested field exists in
public Exists ( string field ) : MongoQuery
field string
리턴 MongoQuery

FindById() 공개 메소드

Finds a record based on the Oid value
public FindById ( MongoOid id ) : MongoQuery
id MongoOid
리턴 MongoQuery

FindById() 공개 메소드

Finds a record based on the Oid value
public FindById ( byte id ) : MongoQuery
id byte
리턴 MongoQuery

FindById() 공개 메소드

Finds a record based on the Oid value
public FindById ( string id ) : MongoQuery
id string
리턴 MongoQuery

Greater() 공개 메소드

Finds all records greater than the provided value
public Greater ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

GreaterOrEqual() 공개 메소드

Finds all records greater than or equal to the provided value
public GreaterOrEqual ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

In() 공개 메소드

Finds fields that match any value within the record
public In ( string field ) : MongoQuery
field string
리턴 MongoQuery

In() 공개 메소드

Finds fields that match any value within the record
public In ( string field, IEnumerable values ) : MongoQuery
field string
values IEnumerable
리턴 MongoQuery

Increment() 공개 메소드

Increments each of the fields provided by one
public Increment ( ) : void
리턴 void

Increment() 공개 메소드

Increments each of the fields by the number provides - first converting the value to an integer
public Increment ( BsonDocument document ) : void
document CSMongo.Bson.BsonDocument
리턴 void

Increment() 공개 메소드

Increments each of the fields by the number provides - first converting the value to an integer
public Increment ( object parameters ) : void
parameters object
리턴 void

Less() 공개 메소드

Finds all records less than the provided value
public Less ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

LessOrEqual() 공개 메소드

Finds all records less than or equal to the provided value
public LessOrEqual ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

Match() 공개 메소드

Finds all records that match the provided expression
public Match ( string field, Regex expression ) : MongoQuery
field string
expression System.Text.RegularExpressions.Regex
리턴 MongoQuery

Match() 공개 메소드

Finds all records that match the provided expression
public Match ( string field, string expression ) : MongoQuery
field string
expression string
리턴 MongoQuery

Match() 공개 메소드

Finds all records that match the provided expression
public Match ( string field, string expression, RegexOptions options ) : MongoQuery
field string
expression string
options RegexOptions
리턴 MongoQuery

Mod() 공개 메소드

Performs a modulo comparison (field % value == 1)
public Mod ( string field, int value ) : MongoQuery
field string
value int
리턴 MongoQuery

Mod() 공개 메소드

Performs a modulo comparison (field % value == compare)
public Mod ( string field, int value, int compare ) : MongoQuery
field string
value int
compare int
리턴 MongoQuery

MongoQuery() 공개 메소드

Creates a new query for this database
public MongoQuery ( MongoCollection collection ) : System
collection MongoCollection
리턴 System

MongoQuery() 공개 메소드

Creates a new query for this database
public MongoQuery ( MongoDatabase database, string collection ) : System
database MongoDatabase
collection string
리턴 System

NotEqualTo() 공개 메소드

Finds all records that are not equal to the value provided
public NotEqualTo ( string field, object value ) : MongoQuery
field string
value object
리턴 MongoQuery

NotExists() 공개 메소드

Finds records that the requested field does not exist in
public NotExists ( string field ) : MongoQuery
field string
리턴 MongoQuery

NotIn() 공개 메소드

Finds fields that haven't any matches within the array
public NotIn ( string field ) : MongoQuery
field string
리턴 MongoQuery

NotIn() 공개 메소드

Finds fields that haven't any matches within the collection
public NotIn ( string field, IEnumerable values ) : MongoQuery
field string
values IEnumerable
리턴 MongoQuery

Select() 공개 메소드

Selects the records from the database that matches this query
public Select ( ) : IEnumerable
리턴 IEnumerable

Select() 공개 메소드

Selects the records from the database that matches this query
public Select ( QueryOptionTypes options ) : IEnumerable
options QueryOptionTypes
리턴 IEnumerable

Select() 공개 메소드

Selects the records from the database that matches this query
public Select ( int skip, int take ) : IEnumerable
skip int
take int
리턴 IEnumerable

Select() 공개 메소드

Selects the records from the database that matches this query
public Select ( int skip, int take, QueryOptionTypes options ) : IEnumerable
skip int
take int
options QueryOptionTypes
리턴 IEnumerable

SelectOne() 공개 메소드

Selects only one document with the provided parameters
public SelectOne ( ) : MongoDocument
리턴 MongoDocument

SelectOne() 공개 메소드

Selects only one document with the provided parameters
public SelectOne ( QueryOptionTypes options ) : MongoDocument
options QueryOptionTypes
리턴 MongoDocument

SelectOne() 공개 메소드

Selects only one document with the provided parameters
public SelectOne ( int skip ) : MongoDocument
skip int
리턴 MongoDocument

SelectOne() 공개 메소드

Selects only one document with the provided parameters
public SelectOne ( int skip, QueryOptionTypes options ) : MongoDocument
skip int
options QueryOptionTypes
리턴 MongoDocument

Set() 공개 메소드

Updates all matching records with the values on the provided BsonDocument or adds the new item to object entirely
public Set ( BsonDocument document ) : void
document CSMongo.Bson.BsonDocument
리턴 void

Set() 공개 메소드

Updates all matching records with the values on the provided object or adds the new item to object entirely
public Set ( object changes ) : void
changes object
리턴 void

Size() 공개 메소드

Finds fields that match all value within the record
public Size ( string field, int size ) : MongoQuery
field string
size int
리턴 MongoQuery

Unset() 공개 메소드

Removes all matching fields from each document in the query
public Unset ( ) : void
리턴 void

Where() 공개 메소드

Writes a manual function to persom a comparison on the server
public Where ( string script ) : MongoQuery
script string
리턴 MongoQuery

Where() 공개 메소드

Writes a manual function to perform a comparison on the server
public Where ( string script, bool wrapWithFunction ) : MongoQuery
script string
wrapWithFunction bool
리턴 MongoQuery