To use ASE ADO.NET Data Provider, you must also add a line to your source code to reference ASE ADO.NET Data Provider. You must add a different line for C# than for Visual Basic .NET.
Referencing the ASE ADO.NET Data Provider classes
in your code
Start Visual Studio .NET and open your project.
For C#, add the following
line to the list of using
directives
at the beginning of your project:
using Sybase.Data.AseClient;
For Visual Basic .NET, add the following line at
the beginning of your project before the line Public
Class Form1
:
Imports Sybase.Data.AseClient
This line is not strictly required. However, it allows you to use short forms for the ASE classes. Without it, you can still use
Sybase.Data.AseClient.AseConnection conn = new Sybase.Data.AseClient.AseConnection();
instead of
AseConnection conn = new AseConnection();
in your code.