in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

Add ConnectionCreated static event to SQLiteConnection

Last post 05-11-2008 2:35 AM by SqlRanger. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-11-2008 2:35 AM

    Add ConnectionCreated static event to SQLiteConnection

    I'm implementing a change tracking mechanism as part of a occasionally connected application. I'm subscribing to SQLiteConnection.Update event to register row changes in an additional sqlite database. But I have no transparent way to capture the connection and subscribe to Update event. Currently, the connections are created using the factory pattern (MyConnectionFactory.CreateSQLiteConnection()), but nothing prevents programmers from creating connections directly by calling SQLiteConnection constructor.

    It would be nice to have a SQLiteConnection.ConnectionCreated static event, this would allow you to subscribe to Update event transparently without needing to use a custom factory.

     

     

    Regards

    Jesús López

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems