Skip to content

DbConnectionFactory

Namespace: MJCZone.DapperMatic.AspNetCore.Factories

Assembly: MJCZone.DapperMatic.AspNetCore

Summary

Default implementation of IDbConnectionFactory that creates provider-specific database connections.

Inheritance

Implemented Interfaces:

sealed public

Contents

Constructors (1) | Methods (5)

Constructors

DbConnectionFactory

csharp
DbConnectionFactory()

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 (e.g., SqlServer, PostgreSQL, MySQL, SQLite).
  • connectionString (string) - The connection string.

Returns

Type: IDbConnection

A configured database connection.

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()