My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
T_MongoDB_Driver_DBObject  
API documentation for the DBObject type
WikiDoc, Type
Updated Jun 8, 2010 by ee.devf...@gmail.com

Remarks

DBObjects are dynamic blocks of data for use in server transmissions.

Example: Simple constructor, explicit adds

            IDBObject o1 = new DBObject();
            o1.Add("key", "value");
            o1.Add("key2", 0);
            o1.Add("key3", true);

Example: Convenience constructor

            IDBObject o2 = new DBObject("key", "value");

Example: Collection initialization

            IDBObject o3 = new DBObject() 
            {
               {"key", "value"},
               {"key2", 0},
               {"key3", true}
            }

Example: Nested object

            IDBObject o4 = new DBObject 
            {
               {"key", new DBObject{
                 {"key2", 0},
                 {"key3", true}}
               }
            }

Members

Methods

Constructors

||Initializes a new instance of the DBModifier class.
DBModifier()

||Initializes a new instance of the DBObject class.
DBModifier(System.Collections.Generic.IDictionary_2[System.String,System.Object])
DBModifier(System.String, System.Object)
DBObject()

AddEachToSet

||===== Returns ===== The DBModifier that is being built
DBObject(System.Collections.Generic.IDictionary_2[System.String,System.Object])
DBObject(System.String, System.Object)
DBModifier AddEachToSet(string fieldName, IList list)

AddToSet

||===== Returns ===== The DBModifier that is being built
DBModifier AddToSet(string fieldName, object value)

Append

||===== Returns =====
DBObject Append(string key, object val)

Inc

||===== Returns ===== The DBModifier that is being built
DBModifier Inc(string fieldName, object value)

Pop

||===== Returns ===== The DBModifier that is being built
DBModifier Pop(string fieldName, bool fromTop)

Pull

||===== Returns ===== The DBModifier that is being built
DBModifier Pull(string fieldName, object value)

PullAll

||===== Returns =====
DBModifier PullAll(string fieldName, IList list)

Push

||===== Returns ===== The DBModifier that is being built
DBModifier Push(string fieldName, object value)

PushAll

||===== Returns ===== The DBModifier that is being built
DBModifier PushAll(string fieldName, IList list)

PutAll

Set

||===== Returns ===== The DBModifier that is being built
void PutAll(IDictionary<string, object> dbObject)
DBModifier Set(string fieldName, object value)

Unset

||===== Returns ===== The DBModifier that is being built
DBModifier Unset(string fieldName, object value)


Sign in to add a comment
Powered by Google Project Hosting