CoreLab.PostgreSql.PgSqlConnection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Fabilson

CoreLab.PostgreSql.PgSqlConnection

Post by 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!

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 02 Aug 2006 08:35

What for do you need to do this?

Fabilson

Post by 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.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by 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.

Fabilson

Post by Fabilson » Wed 09 Aug 2006 16:54

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

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 16 Aug 2006 06:11

You are welcome.

Post Reply