Hi,
We are looking at encrpyting our connection strings, and I was wondering how LLBLGen works with connection strings? Is the conn. string cached, or just loaded from the config file everytime the DataAdaptor needs to go to the database?
The reason I ask, is I am unsure how encrypted connection strings will affect peformance. In looking into this, I found a posting made a while ago by Frans, in reply to someone who has released a conn. string encryptor:
Isn't decrypting rather slow? Or are you caching it in f.e. the application object in a webapplication? (which requires you to pass it on to your DAL with every action OR you have to make your DAL aware of the application object).
All very good questions - if it is cached then where, because you dont want to pass it to every BL, and nor do you want to make the business layer use HttpContext, in case you write a windows forms UI for example...
Any thoughts? Is there a way I can cache something like this and make it available to the BL and lower layers, without them going though httpcontext?