Show / Hide Table of Contents

    Class MsAccessCacheKeyGenerator

    Cache key generator for Microsoft Access used by DatabaseSchemaCache.

    Inheritance
    System.Object
    MsAccessCacheKeyGenerator
    Implements
    ISchemaCacheKeyGenerator<System.Data.OleDb.OleDbConnection>
    ISchemaCacheKeyGenerator
    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 connection is null.

    Explicit Interface Implementations

    ISchemaCacheKeyGenerator.GenerateKey(Object)

    Declaration
    string ISchemaCacheKeyGenerator.GenerateKey(object connection)
    Parameters
    Type Name Description
    System.Object connection
    Returns
    Type Description
    System.String

    Implements

    ISchemaCacheKeyGenerator<T>
    ISchemaCacheKeyGenerator
    Back to top KROS a.s.