If your application needs to address specific DBMS functionality, you can use a DataDirect Connect for ADO.NET data provider.Although using the default DAAB during development is convenient, the resulting application lacks portability. When you use the provider-specific DataDirect Connect for ADO.NET DAAB implementation, the application includes the DataDirect Connect data providers’ SQL leveling capabilities. You have more flexibility, whether your application needs to access multiple databases, or whether you anticipate a change in your target data source.If your application needs to retrieve data in specialized way, or if your code needs customization to take advantage of features specific to a DBMS, using the DataDirect Connect for ADO.NET data provider for that DBMS might be better suited to your needs.
2 Open the DataDirect Enterprise Library project for your data provider, located in install_dir\Enterprise Libraries\Src\CS\. The default configurations were created with Microsoft Enterprise Library 5.0.
1 Right-click on your project in Solution Explorer. Select Add / New Item. The Add New Item window appears.
2 Select the Application Configuration File template. Then, click Add. The App.config file is added to the the project.
3 Select Start / Programs / Microsoft patterns and practices / Enterprise Library 5.0 / Enterprise Library Configuration / EntLib Config .NET 3.5. The Enterprise Library Configuration window appears.
4
6 Click the plus sign button () in the Database Instances column and select Add Database Connection String. This adds a new connection string item to the configuration.
7 In the Name field, enter a name for the DAAB’s connection string, for example, MyDB2conn.
8 In the Connection String field, click the ellipsis button () to display the Edit Text Value dialog box. Type or paste a connection string in the text box and click OK.
9 In the Database Provider drop-down list, select the data provider. For example, select DDTek.DB2.4.0 for the DB2 data provider.
11
4
5 Right-click the connection string under the Application Node and select Save Application.
7 Using File Explorer, copy the DDTek.EnterpriseLibrary.Data.XXX.dll into your application’s working directory.If you need to target Enterprise Library 4.1, open the DataDirect Enterprise Library project for your data provider, located in install_dir\Enterprise Libraries\Src\CS\ and use the Debug41 and Release41 configurations.