Skip to content

Exception for  #5

@dzordzo

Description

@dzordzo

I really like these utils, hope it is still maintained.

There is an issue worth mentioning.
The solution doesn't work for async operation:

await connection.ExecuteAsync(query, item);

InvalidOperationException: Async operations require use of a DbConnection or an IDbConnection where CreateCommand() returns a DbCommand

Maybe there is the possibility to redesign DbCommandMock to inherit from abstract DbCommand instead of just implementing IDbCommand :?

I would like to have a solution when SaveInBatch is enabled by the configuration flag.
So using the same code instead of switching between synch and async execution would be a much more clean solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions