Knight Data Access Layer
Using ODBC or OLEDB
Basic Tasks C# > Using ODBC and OLEDB > Using ODBC or OLEDB

Here is how to instantiate the ODBC or OLEDB Provider:

 

        OdbcProvider provider = new OdbcProvider();
        provider.ConnectionString = "My Connection String";

        DataHelper db = new DataHelper(provider);