2022-11-18 19:51:33 +01:00
|
|
|
|
using System.Data;
|
2022-11-15 22:12:50 +01:00
|
|
|
|
|
2022-11-18 19:51:33 +01:00
|
|
|
|
namespace SweetLib.Storage
|
2022-11-15 22:12:50 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provider for database connection.
|
|
|
|
|
/// </summary>
|
2022-11-18 19:51:33 +01:00
|
|
|
|
public interface IConnectionProvider<out T> where T : IDbConnection
|
2022-11-15 22:12:50 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets an instance of a database connection.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
T GetConnection();
|
|
|
|
|
}
|
|
|
|
|
}
|