Asp.net sql cache dependency programmatically configuration

余生长醉 提交于 2019-12-11 13:42:23

问题


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

来源:https://stackoverflow.com/questions/3413953/asp-net-sql-cache-dependency-programmatically-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!