You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the idea behind the IDbConnection_CreateCommand interface method?
IDbCommandFactory takes an IDbConnection interface and returns an IDbCommand interface with the logical place for initialization of the object behind it (as initiated via the .Execute method) being the IDbCommandBase_CreateCommand interface. However, IDbCommandBase_CreateCommand in turn calls IDbConnection_CreateCommand interface, which merely duplicates the Guards present in IDbCommandBase_CreateCommand and then sets basic command properties passed from IDbCommandBase_CreateCommand. It appears that this way unnecessary coupling and a loop IDbConnection->IDbCommand->IDbConnection are generated.
I would remove the IDbConnection_CreateCommand interface, placing all of the necessary code in IDbCommandBase_CreateCommand. I can submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
What is the idea behind the IDbConnection_CreateCommand interface method?
IDbCommandFactory takes an IDbConnection interface and returns an IDbCommand interface with the logical place for initialization of the object behind it (as initiated via the .Execute method) being the IDbCommandBase_CreateCommand interface. However, IDbCommandBase_CreateCommand in turn calls IDbConnection_CreateCommand interface, which merely duplicates the Guards present in IDbCommandBase_CreateCommand and then sets basic command properties passed from IDbCommandBase_CreateCommand. It appears that this way unnecessary coupling and a loop IDbConnection->IDbCommand->IDbConnection are generated.
I would remove the IDbConnection_CreateCommand interface, placing all of the necessary code in IDbCommandBase_CreateCommand. I can submit a pull request for this issue.
The text was updated successfully, but these errors were encountered: