October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can use Push SQL cache dependencies when working with the Cache object. You represent a Push SQL cache dependency with an instance of the SqlCacheDependency class.
For example, in the Page_Load() handler in Listing 29.48, a DataTable is added to the cache that represents the contents of the Movies database table. The DataTable displays in a GridView control.
Listing 29.48. PushSQLDataCache.aspx


An instance of the SqlCacheDependency class is created. A SqlCommand object is passed to the constructor ...