My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for

Assembly: MongoDB.Driver.dll
Namespace: MongoDB.Driver

N_MongoDB_Driver  
API documentation for the MongoDB.Driver Namespace
WikiDoc, Namespace
Updated Jun 7, 2010 by ee.devf...@gmail.com

Summary

Core types for connecting to a remote MongoDB Server

Remarks

This namespace defines proxy objects and helper classes to allow a remote connection to a MongoDB Server. In general, you will want to make use of the Mongo class to bind to a server and get IServer , IDatabase , and IDBCollection proxies. These directly correlate with server-side representations of MongoDB objects, and by using local properties and methods, you can interact with the server.

Example: Inserting a new document into a collection

IDBCollection coll = Mongo.GetDatabase("http://localhost/db").GetCollection("test");
coll.Insert(new Document() { {"a", 1}, {"b", 2}});

Example: Querying for documents that match certain criteria

IDBCollection coll = Mongo.GetDatabase("http://localhost/db").GetCollection("test");

//Find first document in the collection whose "a" field is 1
coll.FindOne(Where.Field(a => a == 1)); 

Enumerations

Enumeration Summary
BinaryType BSON type indicator byte
CursorFlags Bitwise Cursor option flags
DBError+Code Well-known error codes
DiagnosticLoggingLevel The diagnostic logging level of the server
DocumentState Represents the life cycle state of an IDocument
Operation Specifies IDBMessage operation codes
TypeByte BSON Element Type designator
UpdateOption Flags specifying how to apply updates

Interfaces

Interface Summary
IAdminOperations Represents an IDatabase that supports administrative operations
IDatabase
IDBBinding
IDBCollection
IDBConnection Represents a direct, physical database connection
IDBCursor Represents an unfinished query result from the server
IDBCursor`1
IDBIndex Represents an index on an IDBCollection
IDBMessage Represents a message sent to or received from the server
IDBMultiBinding Represents a logical database connection that may connect to multiple physical databases
IDBObject Represents a unit of send/receive-able data
IDBObjectCustom Represents an IDBObject that defines its own custom serialization to/from the wire protocol
IDBRequest Represents an IDBMessage sent from client to server
IDBResponse Represents an IDBMessage sent from server to client
IDBResponse`1
IDocument Represents a full document that can be sent to or retrieved from a collection on the server
IServer Represents a remote MongoDB server
IServerBinding Represents a logical connection to a MongoDB server
IServerMultiBinding Represents a logical server connection that may, in fact, consist of multiple physical servers
IUriComparable Represents an object whose uniqueness can be determined by a Uri parameter

Classes

Class Summary
BuildInfo Information about the current build of the bound MongoDB server
Constants Constants used in MongoDB.Driver namespace
Constants+CollectionNames Well-Known Collection Names
Constants+SpecialFieldNames Well-Known, Special field names
Database The default implementation of the database interface
DBBinary A generic container for binary data
DBBinding A Simple database binding.
DBCode Represents a unit of JavaScript code
DBConnection A database port that you can connect to
DBConnectionOptions Options for setting up and maintaining logical database connections
DBCursor`1 A cursor from a document query
DBCursorOptions Represents the details of a query that results in a IDBCursor
DBError Convenience wrapper for error responses from the database
DBFieldSet A convenience IDBObject to hold sets of field names for queries in the correct format
DBModifier A IDBObject that is optimized for modification clauses on DB updates
DBModifier+ModifierOperation Well-Known Modifying commands
DBMultiBinding A database binding that leverages a pair of databases
DBObject
DBObjectWrapper Base class for strongly typed wrappers of IDBObject
DBQuery An implementation of IDBObject that is optimized for query (selector) clauses on DB operations
DBQuery+ConditionalOperation Well-Known Query Operations
DBQueryParameter A parameter for use in Lambda-based queries
DBRef A Wrapper for a reference to another object
DBSymbol Type to hold a BSON symbol object
DBTimestamp
DBUndefined Type to represent BSON 'undefined' type
Do Fluent root for IDocument modifier expressions
Document The public, default implementation of IDocument be stored to and retrieved from a server
DocumentFactory`1
Extensions Misc utilities and extensions
IAdminOperationExtensions Extension Methods for IAdminOperations
IDatabaseExtensions Extension methods for IDatabase
IDBBindingExtensions Extension methods for IDBBinding
IDBCollectionExtensions Extension method implementations for convenience overrides and common collection operations
IDBIndexExtensions Extension methods for IDBIndex
IDBObjectExtensions Extension methods for IDBObject
IDocumentExtensions Extension methods for IDocument
IServerBindingExtensions Extension methods for IServerBinding
IServerExtensions Extension methods for IServer
LastError The result of the GetLastError command
MapReduceInfo Details of a MapReduce operation
Mongo
MongoException An MongoDB.Net Exception
MongoException+Authentication An exception while authenticating with MongoDB
MongoException+LastError An exception based on the last error received from the server
MongoException+Network A network level exception
MongoException+Response An exceptional state that came from an IDBResponse
MongoUriParser Helper class to parse specialized MongoDB Uri strings
Oid
Oid+Generator A helper class that generates new Oid instances
ServerBinding
ServerMultiBinding A database binding that leverages a pair of databases
UriEqualityComparer`1 An equality comparer that investigates the Uri associated with an object
UriExtensions Extension functions for Uri
Where The static root for fluent DBQuery generation
WireProtocol Helper methods for communication via the MongoDB Wire Protocol
WireProtocolReader Deserializes messages from the MongoDB wire protocol
WireProtocolWriter Serializes messages via the MongoDB wire protocol


Sign in to add a comment
Powered by Google Project Hosting