Skip to content
Permalink
Browse files

Update Transaction.cs

Update to Transaction class converting Database types to IDatabase in order to facilitate usage from Depenency Injection contexts.
  • Loading branch information
mb
mb committed Jan 8, 2020
1 parent 93b9326 commit 31b20c04c0e2982fd8aec8f161897d441dfeed98
Showing with 2 additions and 2 deletions.
  1. +2 −2 PetaPoco/Core/Transaction.cs
@@ -5,9 +5,9 @@
/// </summary>
public class Transaction : ITransaction
{
private Database _db;
private IDatabase _db;

public Transaction(Database db)
public Transaction(IDatabase db)
{
_db = db;
_db.BeginTransaction();

0 comments on commit 31b20c0

Please sign in to comment.
You can’t perform that action at this time.