| Name | Description | |
|---|---|---|
![]() | MongoDBConnection Constructor | Overloaded. Initializes a new instance of the MongoDBConnection class. |
The following tables list the members exposed by MongoDBConnection.
| Name | Description | |
|---|---|---|
![]() | MongoDBConnection Constructor | Overloaded. Initializes a new instance of the MongoDBConnection class. |
| Name | Description | |
|---|---|---|
![]() | ConnectionString | Overridden. Gets or sets the string used to open the connection. Setting it closes the connection if it is open. The default value is an empty string. |
![]() | ConnectionTimeout | Gets or sets the time, in seconds, to wait while trying to open a connection before an error is generated. The default value is 30. |
![]() | Container | (Inherited from System.ComponentModel.Component) |
![]() | Database | Gets or sets the database the connection works with. The default value is an empty string. |
![]() | DataSource | Overridden. Gets the name of the server to connect to; returns the value of the Host property. |
![]() | Host | Gets or sets the name or IP address of the MongoDB server. The default value is an empty string, which means localhost. |
![]() | InDistributedTransaction | Indicates whether the connection is enlisted in a distributed transaction. (Inherited from Devart.Common.DbConnectionBase) |
![]() | Name | Gets or sets name of the component. (Inherited from Devart.Common.DbConnectionBase) |
![]() | NativeLibraryPath | Gets or sets the folder that contains libmongoc-1.0.dll, libbson-1.0.dll, and sqlite3.dll. The default value is an empty string. |
![]() | Owner | Gets or sets a form or other container that the Devart.Common.DbConnectionBase instance belongs to. (Inherited from Devart.Common.DbConnectionBase) |
![]() | Password | Gets or sets the password for the connection. The default value is an empty string. |
![]() | Port | Gets or sets the port the MongoDB server listens on. The default value is 27017. |
![]() | ReaderType | Gets or sets how a data reader returns documents in the native mode (Sql Engine=false): a column per field or the whole document as one value (see MongoDBReaderType). The default value is MongoDBReaderType.Default. |
![]() | ServerVersion | Gets a string containing the version of the instance of the server to which the client is connected. (Inherited from Devart.Common.DbConnectionBase) |
![]() | Site | (Inherited from System.ComponentModel.Component) |
![]() | SqlEngine | Gets or sets a value indicating whether commands are SQL statements over collections as tables (true) or MongoDB database commands in JSON (false). The default value is true. |
![]() | State | Gets or sets the current state of the connection. Setting it to Open or Closed opens or closes the connection. |
![]() | UserId | Gets or sets the user name for the connection. The default value is an empty string. |
| Name | Description | |
|---|---|---|
![]() | CanRaiseEvents | (Inherited from System.ComponentModel.Component) |
![]() | CloseCount | (Inherited from Devart.Common.DbConnectionBase) |
![]() | ConnectionTimeoutInternal | Overridden. Gets the connection timeout from the current connection options; 30 when no connection string is set. |
![]() | DatabaseInternal | Overridden. Gets or sets the database of the connection; the same as the Database property. |
![]() | DbProviderFactory | (Inherited from System.Data.Common.DbConnection) |
![]() | DesignMode | (Inherited from System.ComponentModel.Component) |
![]() | Events | (Inherited from System.ComponentModel.Component) |
![]() | LocalFailover | (Inherited from Devart.Common.DbConnectionBase) |
| Name | Description | |
|---|---|---|
![]() | BeginOpen | Starts an asynchronous invocation of an Open method. (Inherited from Devart.Common.DbConnectionBase) |
![]() | BeginTransaction | Overloaded. Begins a transaction at the database. |
![]() | ChangeDatabase | Overridden. Changes the current database. An open connection is closed and opened again with the new database. |
![]() | Clone | Creates a new MongoDBConnection object that is a copy of the current instance. |
![]() | Close | Closes the connection to the database. This is the preferred method of closing any open connection. (Inherited from Devart.Common.DbConnectionBase) |
![]() | CreateCommand | Creates and returns a MongoDBCommand object associated with the connection. |
![]() | CreateObjRef | (Inherited from System.MarshalByRefObject) |
![]() | Dispose | Overloaded. (Inherited from Devart.Common.DbConnectionBase) |
![]() | EndOpen | Ends an asynchronous invocation of the Open method. (Inherited from Devart.Common.DbConnectionBase) |
![]() | EnlistTransaction | Enlists in the specified transaction. (Inherited from Devart.Common.DbConnectionBase) |
![]() | GetLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() | GetSchema | Overloaded. Returns list of metadata collections and number of restrictions for a collection. (Inherited from Devart.Common.DbConnectionBase) |
![]() | InitializeLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() ![]() | LoadLicenseKey | Loads the specified license key for the application, so that connections can open without the License Key connection string parameter. |
![]() | Open | Overridden. Opens a connection with the settings specified by the ConnectionString property. Loads the native libraries (libmongoc, libbson, sqlite3) on the first call; throws System.InvalidOperationException if the connection string is not set. |
![]() | OpenAsync | Overloaded. (Inherited from System.Data.Common.DbConnection) |
![]() | ToString | (Inherited from System.ComponentModel.Component) |
| Name | Description | |
|---|---|---|
![]() | Disposed | (Inherited from System.ComponentModel.Component) |
![]() | StateChange | Occurs when the state of the connection changes. (Inherited from Devart.Common.DbConnectionBase) |
![]() | TransactionStateChanged | Occurs when the state of the transaction is changed. (Inherited from Devart.Common.DbConnectionBase) |
![]() | TransactionStateChanging | Occurs when the state of the transaction is changing. (Inherited from Devart.Common.DbConnectionBase) |
| Name | Description | |
|---|---|---|
![]() | ConnectionLost | (Inherited from Devart.Common.DbConnectionBase) |