Property | Type | Description | |
---|---|---|---|
CheckError | void | ||
CheckPreviousError | void |
Method | Description | |
---|---|---|
Collection ( string name, |
||
Count ( ) : long |
Count all items in the collection.
|
|
Count ( |
Count all items in a collection that match the query spec. It will return 0 if the collection doesn't exist yet. |
|
Delete ( |
Deletes documents from the collection according to the spec. An empty document will match all documents in the collection and effectively truncate it. |
|
Delete ( |
Deletes documents from the collection according to the spec. An empty document will match all documents in the collection and effectively truncate it. |
|
Find ( |
||
Find ( |
||
Find ( |
||
Find ( String where ) : ICursor | ||
FindAll ( ) : ICursor | ||
FindOne ( |
Finds and returns the first document in a query.
|
|
Insert ( |
||
Insert ( |
Inserts the Document into the collection.
|
|
Insert ( IEnumerable |
||
Insert ( IEnumerable |
||
MapReduce ( ) : |
Entrypoint into executing a map/reduce query against the collection.
|
|
MapReduceBuilder ( ) : |
||
Save ( |
Saves a document to the database using an upsert. The document will contain the _id that is saved to the database. This is really just an alias to Update(Document) to maintain consistency between drivers. |
|
Update ( |
Updates a document with the data in doc as found by the selector. _id will be used in the document to create a selector. If it isn't in the document then it is assumed that the document is new and an upsert is sent to the database instead. |
|
Update ( |
Updates a document with the data in doc as found by the selector.
|
|
Update ( |
Updates a document with the data in doc as found by the selector.
|
|
Update ( |
||
Update ( |
||
Update ( |
||
Update ( |
||
Update ( |
||
UpdateAll ( |
Runs a multiple update query against the database. It will wrap any doc with $set if the passed in doc doesn't contain any '$' ops.
|
|
UpdateAll ( |
Method | Description | |
---|---|---|
CheckError ( bool safemode ) : void | ||
CheckPreviousError ( bool safemode ) : void |
public Collection ( string name, |
||
name | string | |
conn | ||
dbName | string | |
return | System |
public Delete ( |
||
selector | ||
safemode | bool | |
return | void |
public Find ( |
||
spec | ||
limit | int | |
skip | int | |
return | ICursor |
public Find ( |
||
spec | ||
limit | int | |
skip | int | |
fields | ||
return | ICursor |
public FindOne ( |
||
spec |
/// A |
|
return |
public Insert ( |
||
doc | ||
safemode | bool | |
return | void |
public Insert ( IEnumerable |
||
docs | IEnumerable |
|
safemode | bool | |
return | void |
public MapReduceBuilder ( ) : |
||
return |
public Update ( |
||
doc | ||
selector | ||
return | void |
public Update ( |
||
doc | The |
|
selector | /// The query spec to find the document to update. /// | |
flags | UpdateFlags |
/// |
return | void |
public Update ( |
||
doc | ||
selector | ||
flags | UpdateFlags | |
safemode | bool | |
return | void |
public Update ( |
||
doc | ||
selector | ||
safemode | bool | |
return | void |
public Update ( |
||
doc | ||
selector | ||
flags | int | |
return | void |
public Update ( |
||
doc | ||
selector | ||
flags | int | |
safemode | bool | |
return | void |
public Update ( |
||
doc | ||
safemode | bool | |
return | void |
public UpdateAll ( |
||
doc | ||
selector | ||
return | void |
public UpdateAll ( |
||
doc | ||
selector | ||
safemode | bool | |
return | void |