我想在视图和过程中使用SqlCacheDependency。 using (System.Data.SqlClient.SqlConnection conn = newCreate Command to use in SqlCacheDependency
using (System.Data.SqlClient.SqlCommand cmd =Create SqlCacheDepen
我发现SqlCacheDependency在编写C# ASP.NET应用程序时非常有用,并且希望在我的ASP.NET应用程序中使用类似的东西。有人能提点建议吗?SqlCacheDependency永远缓存页面输出,直到在数据库中修改指定的表。下面是在ASP.NET中发生的事情的基本要点:
// Check the Cache for the SqlSource key.// If it isn't there, crea