Click or drag to resize
Galactic API

MongoDBUtility Class

Provides various utility methods for use with MongoDB servers.
Inheritance Hierarchy

Namespace:  Galactic.NoSql.MongoDB
Assembly:  Galactic.NoSql.MongoDB (in Galactic.NoSql.MongoDB.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class MongoDBUtility : NoSqlUtility

The MongoDBUtility type exposes the following members.

Constructors
  NameDescription
Public methodMongoDBUtility
Creates a utility object that can be used to perform operations against a MongoDB server. Note: Uses the authentication and database information from the supplied configuration item.
Top
Methods
  NameDescription
Public methodAddOrReplace(String, ExpandoObject)
Adds or replaces a document within the default collection.
(Overrides NoSqlUtilityAddOrReplace(String, ExpandoObject).)
Public methodAddOrReplace(String, String, ExpandoObject)
Adds or replaces a document within the specified collection.
Public methodDelete(String)
Deletes the specified id and it's associated document from the default colleciton.
(Overrides NoSqlUtilityDelete(String).)
Public methodDelete(String, String)
Deletes the specified id and it's associated document from the specified collection.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet(String)
Gets a document from the database with the specified id within the default collection.
(Overrides NoSqlUtilityGet(String).)
Public methodGet(String, String)
Gets a document from the database with the specified id within the specified collection.
Public methodGetByQuery(Object)
Gets documents from the database that correspond to the supplied query.
(Overrides NoSqlUtilityGetByQuery(Object).)
Public methodGetByQuery(Object, String)
Gets documents from the database that correspond to the supplied query.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisCollectionNameValid
Checks the syntax of a supplied collection name to see if it contains invalid characters.
Protected methodLogException
Logs an exception to the event log.
(Overrides NoSqlUtilityLogException(Exception, EventLog).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_COLLECTION
The name of the default collection used for adding documents if a collection is not specified.
Top
See Also