0
我想知道,如果我必须执行此代码,每当我的应用程序运行或一旦我运行它,我的数据库现在设置为清理我的缓存,只要确定的表指定更改。C#SqlCacheDependency - 我是否必须启用通知和EnableTableForNotifications每当我的应用程序运行?
System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications(cs);
System.Web.Caching.SqlCacheDependencyAdmin.EnableTableForNotifications(cs, "TABLENAME");