DatabaseMethodsProvider
Namespace: MJCZone.DapperMatic.Providers
Assembly: MJCZone.DapperMatic
Summary
Provides methods for registering and retrieving database method factories.
static public
Contents
Methods (7)
Methods
| Method | Summary |
|---|---|
| RegisterFactory | Registers a custom database methods factory. |
| RegisterFactory | Registers a database methods factory for a specific provider type. |
| GetMethods | Gets 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
- name (string) - The name of the custom factory.
- factory (IDatabaseMethodsFactory) - The custom factory to register.
RegisterFactory
Registers a database methods factory for a specific provider type.
csharp
void RegisterFactory(
DbProviderType providerType,
IDatabaseMethodsFactory factory)Parameters
- providerType (DbProviderType) - The provider type.
- factory (IDatabaseMethodsFactory) - The factory to register.
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()