2024-06-23 18:15:32 -04:00
|
|
|
|
using System.Data;
|
2024-09-05 23:03:43 -04:00
|
|
|
|
using FruityFoundation.Base.Structures;
|
2024-06-23 18:15:32 -04:00
|
|
|
|
|
|
|
|
|
namespace FruityFoundation.DataAccess.Abstractions;
|
|
|
|
|
|
|
|
|
|
public interface INonTransactionalDbConnection<TConnectionType> : IDatabaseConnection<TConnectionType>, IDisposable, IAsyncDisposable
|
|
|
|
|
where TConnectionType : ConnectionType
|
|
|
|
|
{
|
2024-06-23 22:27:05 -04:00
|
|
|
|
public Task<IDatabaseTransactionConnection<TConnectionType>> CreateTransaction(CancellationToken cancellationToken);
|
|
|
|
|
public Task<IDatabaseTransactionConnection<TConnectionType>> CreateTransaction(IsolationLevel isolationLevel, CancellationToken cancellationToken);
|
2024-06-23 18:15:32 -04:00
|
|
|
|
}
|