0
我想知道,如果我必須執行此代碼,每當我的應用程序運行或一旦我運行它,我的數據庫現在設置爲清理我的緩存,只要確定的表指定更改。C#SqlCacheDependency - 我是否必須啓用通知和EnableTableForNotifications每當我的應用程序運行?
System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications(cs);
System.Web.Caching.SqlCacheDependencyAdmin.EnableTableForNotifications(cs, "TABLENAME");