using a dll file
Posted: Sat 19 Nov 2005 16:39
Hi! I made an dll file that contains a connection to a SQLserver database. This works fine.
Now I want to change the connection to a MySql database still using the the same connections only changing SqlConnection to MySqlConnection and SqlDataReader to MySqlDataReader and so on.
I use the following line:
using CoreLab.MySql;
The problem occurs when I try to turn my .cs file into a .dll file. The compiler complaints that it doesn't recognise the nameSpace CoreLab. My guess is that I'm missing a reference to the assembly, but how do you do that in a .dll file?
Now I want to change the connection to a MySql database still using the the same connections only changing SqlConnection to MySqlConnection and SqlDataReader to MySqlDataReader and so on.
I use the following line:
using CoreLab.MySql;
The problem occurs when I try to turn my .cs file into a .dll file. The compiler complaints that it doesn't recognise the nameSpace CoreLab. My guess is that I'm missing a reference to the assembly, but how do you do that in a .dll file?