C
Cornelis
Guest
I'm trying to connect to a progress database but get a
Type or namespace cannot be found (are you...)
I understand that I need to reference the name space with 'using'. However, the class is still not picking up the reference. See code below:
using System;
using System.Data;
using System.Data.Odbc; // Reference Here
using System.Collections.Generic;
using System.Text;
namespace DatabaseClassLibrary
{
public static class ProgressDB
{
static string connstr;
static ProgressDB ()
{
connstr = "DSN=" + ...;
}
public static bool TestConnection ()
{
// Error @ OdbcConnection
using (OdbcConnection dbConn = new OdbcConnection(connstr))
{
...
}
return false;
}
}
}
Additional Information I am building a DotNetCore 2 application. However, this part is in a separate class library project. The documentation can be found here: Progress Knowledgebase
Continue reading...
Type or namespace cannot be found (are you...)
I understand that I need to reference the name space with 'using'. However, the class is still not picking up the reference. See code below:
using System;
using System.Data;
using System.Data.Odbc; // Reference Here
using System.Collections.Generic;
using System.Text;
namespace DatabaseClassLibrary
{
public static class ProgressDB
{
static string connstr;
static ProgressDB ()
{
connstr = "DSN=" + ...;
}
public static bool TestConnection ()
{
// Error @ OdbcConnection
using (OdbcConnection dbConn = new OdbcConnection(connstr))
{
...
}
return false;
}
}
}
Additional Information I am building a DotNetCore 2 application. However, this part is in a separate class library project. The documentation can be found here: Progress Knowledgebase
Continue reading...