IDbConnectionFactory
Namespace: MJCZone.DapperMatic.AspNetCore.Factories
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Factory interface for creating database connections from datasource configurations.
abstract public
Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.
Contents
Methods (1)
Methods
CreateConnection
Creates a database connection for the specified provider and connection string.
csharp
IDbConnection CreateConnection(string provider, string connectionString)Parameters
- provider (string) - The database provider.
- connectionString (string) - The connection string.
Returns
Type: IDbConnection
A configured database connection.