Hi,
I'm trying to execute the pure sql command using the following code:
using (DataAccessAdapterBase adapter = CreateAdapter())
{
adapter.StartTransaction(IsolationLevel.Serializable, "GetQueuedTask");
SqlDataReader dr = (SqlDataReader)adapter.FetchDataReader(query, CommandBehavior.Default);
}
But unfortunateley method FetchDataReader returns the following exception:
Unable to cast object of type 'Npgsql.NpgsqlConnection' to type 'System.Data.SqlClient.SqlConnection'.
What I'm doing wrong?
Best regards,
MiloszeS