Click or drag to resize
Database Constructor (String, String, String)
Create a database connection

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public Database(
	string dbType,
	string str,
	string adapter = null
)

Parameters

dbType
Type: SystemString
Database type - this should be "sqlserver" or "mysql"
str
Type: SystemString
Connection string to connect to the SQL server
adapter (Optional)
Type: SystemString
Set the database provider factory
See Also