• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Class NosDBDependency

Establishes a relationship between an item stored in an application's Cache object and either a specific database item. This class cannot be inherited.

Inheritance
System.Object
CacheDependency
NosDBDependency
Inherited Members
CacheDependency.AddDependencies(CacheDependency[])
CacheDependency.Dependencies
CacheDependency.Dispose()
CacheDependency.DependencyDispose()
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class NosDBDependency : CacheDependency, IDisposable
Remarks

You can add items with dependencies to your application's cache with the specific overloads of Add and Insert methods.

When you add an item object with NosDBDependency to cache, it monitors a specific database. Any changes in the database will remove items associated with it 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 cache.

Constructors

Name Description
NosDBDependency(String, String)

Constructor of NosDBDependency class.

NosDBDependency(String, String, Dictionary<String, Object>, Int32)

Constructor for NosDBDependency class. It takes connectionString of the database, commandText, parameters and timeout as arguments.

Properties

Name Description
CommandText

CommandText to be used by dependency.

ConnectionString

Connection String is the connection string that is required to the cache in order to connect with database.

Parameters

Parameters to be used by dependency.

Timeout

Time after which timeout exception will be thrown.

Back to top Copyright © 2017 Alachisoft