mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
16 lines
406 B
C#
16 lines
406 B
C#
using System.Data.Common;
|
|
|
|
namespace Infrastructure.Repository.Sql;
|
|
|
|
/// <summary>
|
|
/// Factory for creating database connections used by repositories.
|
|
/// </summary>
|
|
public interface ISqlConnectionFactory
|
|
{
|
|
/// <summary>
|
|
/// Creates a new, unopened database connection.
|
|
/// </summary>
|
|
/// <returns>A new <see cref="DbConnection"/> instance.</returns>
|
|
DbConnection CreateConnection();
|
|
}
|