Asp.net sql cache dependency programmatically configuration

608 Views Asked by At

I've a question regarding SqlCacheDependency configuration. Every resource I've read requires the developer to define the polled databases into web.config. This is not a good scenario for our application that connects to different databases, because we don't want to edit web.config each time we add / remove a database.

We tried to configure it using SqlCacheDependency and SqlCacheDependencyAdmin in application startup but it seems that you must anyway configure everything in web.config.

Do you know a possible solution? Thanks, Marco

0

There are 0 best solutions below