Establishes a relationship between an item stored in an application's Cache object and either a row in a specific SQL Server database table or the results of a SQL Server 2005 query.Namespace: Alachisoft.NCache.Runtime.Dependencies
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 188.8.131.52 (184.108.40.206)
[SerializableAttribute] public sealed class SqlCacheDependency : CacheDependency
<SerializableAttribute> Public NotInheritable Class SqlCacheDependency Inherits CacheDependency
[SerializableAttribute] public ref class SqlCacheDependency sealed : public CacheDependency
You can add items with dependencies to your application's cache with theand Insert methods.
When you add an item to an application'sobject with , on all supported versions of SQL Server (7.0, 2000, 2005), it monitors a row in a specific SQL Server database table so that when that row changes, items associated with the row will be automatically removed from the Cache. This helps you avoid losing changes made to the object between the time it is created and the time it is inserted into the . class supports the association of cached items with a SQL Server query when SQL Server 2005 is used.