Class DBDependencyFactory
Returns an instance of DBCacheDependency class.
This is a static class.
Inheritance
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class DBDependencyFactory
CreateOleDbCacheDependency(String, String)
Creates a new instance of
Declaration
public static DBCacheDependency CreateOleDbCacheDependency(string connectionString, string dbCacheKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string for establishing a connection with the database server where the database containing above mentioned table exists. |
System.String | dbCacheKey |
Returns
Type | Description |
---|---|
DBCacheDependency | A SqlCacheDependency object based on the supplied parameters. |
Remarks
You need to enable notification for both the table and the database containing the table before you can use this DBCacheDependency in your application.
CreateSqlCacheDependency(String, String)
Creates a new instance of Sql7CacheDependency class, using the supplied parameters.
Declaration
public static DBCacheDependency CreateSqlCacheDependency(string connectionString, string dbCacheKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string for establishing a connection with the database server where the database containing above mentioned table exists. |
System.String | dbCacheKey |
Returns
Type | Description |
---|---|
DBCacheDependency | A SqlCacheDependency object based on the supplied parameters. |
Remarks
This static method is used to create SqlCacheDependency objects for SQL Server 7 and SQL Server 2000 products.
You need to enable notification for both the table and the database containing the table before you can use this DBCacheDependency in your application.