CoreLab.PostgreSql.PgSqlConnection

CoreLab.PostgreSql.PgSqlConnection

Postby Fabilson » Wed 02 Aug 2006 03:06

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!
Fabilson
 

Postby Alexey » Wed 02 Aug 2006 08:35

What for do you need to do this?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Fabilson » Wed 02 Aug 2006 11:58

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.
Fabilson
 

Postby Alexey » Thu 03 Aug 2006 06:15

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.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Fabilson » Wed 09 Aug 2006 16:54

OK.
I got it.
Thank you for the attention.
Fabilson
 

Postby Alexey » Wed 16 Aug 2006 06:11

You are welcome.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for PostgreSQL