protected DbConnection CreateConnection()
{
return new NpgsqlConnection();
}
protected override DbCommand CreateCommand()
{
return new NpgsqlCommand();
}
Cannot implicitly convert type 'Npgsql.DbConnection' to 'System.Data.Common.NpgsqlConnection'
Cannot implicitly convert type 'Npgsql.NpgsqlCommand' to 'System.Data.Common.DbCommand'
How can I do?
protected override DbCommand CreateCommand() { return new NpgsqlCommand(); } Cannot implicitly convert type 'Npgsql.DbConnection' to 'System.Data.Common.NpgsqlConnection' Cannot implicitly convert type 'Npgsql.NpgsqlCommand' to 'System.Data.Common.DbCommand' How can I do?