2024-06-23 18:15:32 -04:00
|
|
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|