Creates an instance of DbNeData with the data provider specified and the database
| C# | Visual Basic |
public DbNetData( string ConnectionString, DataProvider Provider, DatabaseType Database )
Public Sub New ( _ ConnectionString As String, _ Provider As DataProvider, _ Database As DatabaseType _ )
- ConnectionString (String)
- Connection string
- Provider (DataProvider)
- Data provider
- Database (DatabaseType)
- Database type
In most cases specifying the Database type is not necessary as DbNetData can get this information automatically
DbNetData Data = new DbNetData("DSN=HumanResources;", DataProvider.Odbc, Database.DB2);