Custom connection and DAAB

Topics: Data Access Application Block
Jan 16, 2008 at 9:51 AM
Hi,

I would like to use EntLib and DAAB for a project with the Web Service Software Factory.

However I have one constraint about the connection: I cannot define the connection string in the configuration file.
Instead my application has to call a GetConnection() method in a specific homemade assembly in order to retrieve a connection to our database. This assembly is commonly used by other product's modules to get a connection object. This is because we don't want to divulge the connection information in configuration files (even if we can encrypt it).

Is this constraint compatible with using DAAB? Maybe there is another way to create a Database object without using the DatabaseFactory.CreateDatabase()?

If it is possible to use it, do I loose other benefits of EntLib like connection management, pooling, etc?
Thanks