Page 1 of 1

CoreLab.PostgreSql.PgSqlConnection

Posted: Wed 02 Aug 2006 03:06
by Fabilson
I work with BDS2006 and I am facing the following problem.
How can I make a class that extends from CoreLab.PostgreSql.PgSqlConnection

as:

type
TConexao = class (CoreLab.PostgreSql.PgSqlConnection)

I always get the error:
[Pascal Error] Conexao.pas(11): E2353 Cannot extend sealed class 'PgSqlConnection'

Is there any solution?

please!

Posted: Wed 02 Aug 2006 08:35
by Alexey
What for do you need to do this?

Posted: Wed 02 Aug 2006 11:58
by Fabilson
I wuld like to make a class that is independent of DB.

I am build a application that now is working with PostgreSQL and I would like to make a class that just changing a few codes wold work with Firebird ou MSSQL for instance.

Thank you.

Posted: Thu 03 Aug 2006 06:15
by Alexey
Firstly, we have UniDirect .NET fo these purposes.
Secondly, with MS SQL Server you will have the same problem, because its classes are sealed as well.
Thirdly, you may wrap our PgSqlConnection class.

Posted: Wed 09 Aug 2006 16:54
by Fabilson
OK.
I got it.
Thank you for the attention.

Posted: Wed 16 Aug 2006 06:11
by Alexey
You are welcome.