14 lines
370 B
C#
14 lines
370 B
C#
using System.Data;
|
|
using Microsoft.Data.Sqlite;
|
|
|
|
namespace FruityFoundation.DataAccess.Sqlite;
|
|
|
|
public static class SqliteConnectionExtensions
|
|
{
|
|
public static async Task<SqliteTransaction> CreateTransaction(this SqliteConnection connection, IsolationLevel isolationLevel)
|
|
{
|
|
await connection.OpenAsync();
|
|
return connection.BeginTransaction(isolationLevel);
|
|
}
|
|
}
|