Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConsider adding template methods for DbConnection calls #21327
Comments
|
Hi, I'm interested in contributing. In which providers should be added more template methods? |
|
These should be added to RelationalConnection as was done for OpenDbConnection in https://github.com/dotnet/efcore/pull/21328/files |
|
I am not sure that I understand completely what should be done? Should these template methods be implemented in child classes of RelationalConnection? |
|
@KaloyanIT The PR above added a new method
It simply calls |


For #7283 I need to call a different overload of DbConnection.Open in the SQL Server provider. I'm adding a template method to allow this, but similar template methods could be useful in other providers. Tentative list of relevant methods based on what RelationalCommand calls:
We could also consider doing this for other Db types where they are wrapped by EF.