I'm following your tutorial for Linq to LLBLGen Pro.
using (var adapter = new DataAccessAdapter())
{
LinqMetaData metaData = new LinqMetaData(adapter);
var q = from c in metaData.Country
where c.CountryCode == "US"
select new
{
c.CountryName
};
int count = 0;
foreach (var v in q)
{
count++;
}
.....
}
and I'm getting this error:
Unable to cast object of type 'Npgsql.NpgsqlConnection' to type 'Npgsql.NpgsqlConnection'.
Configuration:
VS2008/SP1Beta1
.Net 3.5 SP1
LLBLGen Pro 2.6 Final 6/6/2008
Npgsql2.0rc1-bin-ms.net3.5sp1beta
Am I using the right PostgreSQL .net driver?