Access the internal FbConnection

Posts   
 
    
Posts: 256
Joined: 05-Jul-2010
# Posted on: 08-Jul-2010 10:51:24   

Hi

I would like to use the FbRemoteEvent system. this requires one parameter of type FbConnection.

My Dataadapter remains "open". Is there a way I can find this internal connection you are creating?

Thanks

Alexander

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 08-Jul-2010 21:32:45   

Could you give us more idea of what you are trying to achieve...?

What is to stop you creating your own firebird connection, rather than using the LLBLGen one...?

Matt

Posts: 256
Joined: 05-Jul-2010
# Posted on: 08-Jul-2010 21:35:26   

MTrinder wrote:

Could you give us more idea of what you are trying to achieve...?

What is to stop you creating your own firebird connection, rather than using the LLBLGen one...?

Matt

Nothing is stopping me, except that I would create another connection to a database that is never used. With 10 clients this is ok, with hundred clients, it becomes overkill.

That is the only reason.

Thanks

Alexander

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 09-Jul-2010 09:33:19   
  • Derive from DataAccessAdapter.
  • Override OpenConnection().
  • Call the base class method.
  • Call GetActiveConnection() to obtain the active connection.
Posts: 256
Joined: 05-Jul-2010
# Posted on: 09-Jul-2010 09:34:06   

Walaa wrote:

  • Derive from DataAccessAdapter.
  • Override OpenConnection().
  • Call the base class method.
  • Call GetActiveConnection() to obtain the active connection.

Thanks