Creates an instance of DbNeData with the data provider specified and the database
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public DbNetData( string ConnectionString, DataProvider Provider, DatabaseType Database ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ ConnectionString As String, _ Provider As DataProvider, _ Database As DatabaseType _ ) |
| Visual C++ |
|---|
public: DbNetData( String^ ConnectionString, DataProvider Provider, DatabaseType Database ) |
Parameters
- ConnectionString
- Type: System..::.String
Connection string
- Provider
- Type: DbNetLink.Data..::.DataProvider
Data provider
- Database
- Type: DbNetLink.Data..::.DatabaseType
Database type
Remarks
In most cases specifying the Database type is not necessary as DbNetData can get this information automatically
Examples
DbNetData Db = new DbNetData("DSN=HumanResources;", DataProvider.Odbc, Database.DB2);