• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Class NosDBDependency

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

Inheritance
System.Object
CacheDependency
NosDBDependency
Inherited Members
CacheDependency.sizeInBytes
CacheDependency.DEPENDENCY_TYPE_OVERHEAD
CacheDependency.DEPENDENCY_COUNT_OVERHEAD
CacheDependency.AddDependencies(CacheDependency[])
CacheDependency.Dependencies
CacheDependency.Dispose()
CacheDependency.DependencyDispose()
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class NosDBDependency : CacheDependency, IDisposable, IBinaryProtocolSerializable
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

NosDBDependency(String, String)

Constructor of NosDBDependency class.

Declaration
public NosDBDependency(string connectionString, string commandText)
Parameters
Type Name Description
System.String connectionString
System.String commandText

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

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

Declaration
public NosDBDependency(string connectionString, string commandText, Dictionary<string, object> parameters, int timeout)
Parameters
Type Name Description
System.String connectionString
System.String commandText
System.Collections.Generic.Dictionary<System.String, System.Object> parameters
System.Int32 timeout

Properties

CommandText

CommandText to be used by dependency.

Declaration
public string CommandText { get; set; }
Property Value
Type Description
System.String

ConnectionString

String required to the cache in order to connect with database.

Declaration
public string ConnectionString { get; set; }
Property Value
Type Description
System.String

Parameters

Parameters to be used by dependency.

Declaration
public Dictionary<string, object> Parameters { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Object>

Timeout

Time after which the timeout exception will be thrown.

Declaration
public int Timeout { get; set; }
Property Value
Type Description
System.Int32

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top