[MonoDevelop] using Npgsql

Ricardo Baumann gemini.richard at gmail.com
Wed Apr 30 13:57:37 EDT 2008


Hello;

I added the Npgsql library to my solution in MonoDevelop, but when I
build the solution, I receive this message:

The type or namespace name `NpgsqlConnection' could not be found. Are
you missing a using directive or an assembly reference?(CS0246)

The code class Follow:


using System;
using System.Web;
using System.Web.UI;
using System.Data;
using Npgsql;


	
	
	public class Default : Page
	{
		protected System.Web.UI.HtmlControls.HtmlForm form1;

		protected System.Web.UI.WebControls.TextBox textBox1;

		protected System.Web.UI.WebControls.Button button1;

		
		public virtual void onButtonClick(object sender, EventArgs e)
		{

			NpgsqlConnection Conexao = new
			NpgsqlConnection("Pooling=false;Server=gpserver;Port=5432;UserId=postgres;Password=pgadmin;Database=pdb;");
			Conexao.Open();
			Conexao.Close();
		}
	}
}

What is wrong?

Thanks.

-- 
Atenciosamente;

Ricardo Luís Baumann

gemini.richard at gmail.com
"...'cause what you do in your life, echoes in eternity..."


More information about the Monodevelop-list mailing list