FruityFoundation/FruityFoundation.DataAccess.Abstractions/INonTransactionalDbConnection.cs

11 lines
521 B
C#
Raw Normal View History

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
}