mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Wrap DbTransaction too
This commit is contained in:
parent
e176ccbab5
commit
37b99f9521
6 changed files with 89 additions and 36 deletions
|
|
@ -21,12 +21,12 @@ namespace PluralKit.Core
|
|||
{
|
||||
private readonly int _systemId;
|
||||
private readonly IPKConnection _conn;
|
||||
private readonly DbTransaction _tx;
|
||||
private readonly IPKTransaction _tx;
|
||||
private readonly Dictionary<string, int> _knownMembers = new Dictionary<string, int>();
|
||||
private readonly Dictionary<string, PKMember> _existingMembersByHid = new Dictionary<string, PKMember>();
|
||||
private readonly Dictionary<string, PKMember> _existingMembersByName = new Dictionary<string, PKMember>();
|
||||
|
||||
private BulkImporter(int systemId, IPKConnection conn, DbTransaction tx)
|
||||
private BulkImporter(int systemId, IPKConnection conn, IPKTransaction tx)
|
||||
{
|
||||
_systemId = systemId;
|
||||
_conn = conn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue