Class MsAccessCacheKeyGenerator
Cache key generator for Microsoft Access used by DatabaseSchemaCache.
Inheritance
System.Object
MsAccessCacheKeyGenerator
Namespace: Kros.Data.Schema.MsAccess
Assembly: Kros.Utils.MsAccess.dll
Syntax
public class MsAccessCacheKeyGenerator : ISchemaCacheKeyGenerator<OleDbConnection>, ISchemaCacheKeyGenerator
Methods
GenerateKey(OleDbConnection)
Generates a cache key for connection
.
The generated key is a string "MsAccess:database path
".
Declaration
public string GenerateKey(OleDbConnection connection)
Parameters
Type | Name | Description |
---|---|---|
System.Data.OleDb.OleDbConnection | connection | Database connection. |
Returns
Type | Description |
---|---|
System.String | String. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Value of |
Explicit Interface Implementations
ISchemaCacheKeyGenerator.GenerateKey(Object)
Declaration
string ISchemaCacheKeyGenerator.GenerateKey(object connection)
Parameters
Type | Name | Description |
---|---|---|
System.Object | connection |
Returns
Type | Description |
---|---|
System.String |