Impersonate user for DataAccessAdapter calls

Posts   
 
    
solidstore
User
Posts: 12
Joined: 11-Jul-2005
# Posted on: 21-Jul-2005 18:48:40   

Is their a suitable place to override where I can place code to impersonate the calls that connect to the database?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Jul-2005 10:49:09   

I'd create a DataAccessAdapter factory, which returns a DataAccessAdapter object which is initialized with a connection string to use, and you code your application against IDataAccessAdapter. You then pass in the user credentials to the factory which then produces the right DataAccessAdapter instance.

Or do you need additional features for your impersonation? The DataAccessAdapter just executes queries over the connection made using the connection string passed in.

Frans Bouma | Lead developer LLBLGen Pro