Skip to content

Commit d1465f0

Browse files
author
jaguzman
committed
Initialized factory when using an existing connection within the DbHelper class
1 parent d706d46 commit d1465f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DotNetToolkit.Repository.AdoNet/DbHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ internal DbHelper(IRepositoryConventions conventions, DbConnection existingConne
121121
Guard.NotNull(existingConnection, nameof(existingConnection));
122122

123123
_conventions = conventions;
124+
_factory = DbProviderFactories.GetFactory(existingConnection);
124125
_connection = existingConnection;
125126
_ownsConnection = false;
126127
}

0 commit comments

Comments
 (0)