Skip to content

DatabaseMethodsProvider

Namespace: MJCZone.DapperMatic.Providers

Assembly: MJCZone.DapperMatic

Summary

Provides methods for registering and retrieving database method factories.

static public

Contents

Methods (7)

Methods

MethodSummary
RegisterFactoryRegisters a custom database methods factory.
RegisterFactoryRegisters a database methods factory for a specific provider type.
GetMethodsGets the database methods for a given database connection.
GetType
ToString
Equals
GetHashCode

RegisterFactory

Registers a custom database methods factory.

csharp
void RegisterFactory(string name, IDatabaseMethodsFactory factory)

Parameters

RegisterFactory

Registers a database methods factory for a specific provider type.

csharp
void RegisterFactory(
    DbProviderType providerType,
    IDatabaseMethodsFactory factory)

Parameters

GetMethods

Gets the database methods for a given database connection.

csharp
IDatabaseMethods GetMethods(IDbConnection db)

Parameters

  • db (IDbConnection) - The database connection.

Returns

Type: IDatabaseMethods

The database methods.

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()