edit
This commit is contained in:
16
XLAB2/Infrastructure/IDatabaseConnectionFactory.cs
Normal file
16
XLAB2/Infrastructure/IDatabaseConnectionFactory.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.Data.SqlClient;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace XLAB2.Infrastructure;
|
||||
|
||||
internal interface IDatabaseConnectionFactory
|
||||
{
|
||||
string ConnectionString { get; }
|
||||
|
||||
DatabaseOptions Options { get; }
|
||||
|
||||
SqlConnection CreateConnection();
|
||||
|
||||
Task<SqlConnection> OpenConnectionAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user