Skip to content

Dynamic stored procedures don't close their connection when the result is not cast #69

@abe545

Description

@abe545

#49 fixed the issue when the result is cast to something. However, if the results are never cast to a different object, the connection is never closed. This is a big issue for code like the following:

public async Task Call()
{
    try
    {
        await connection.ExecuteAsync().usp_Sproc();
    }
    catch (Exception ex)
    {
        Log(ex);
        throw;
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions