Skip to content

QueryFactory IDisposable? #551

@generik0

Description

@generik0

Memory/ dbconnection leak when using QueryFactory. Why is QueryFactory disposable when passing the bConnection, I
understand if the passing the connection string, but when passing the connection, the owner of the connection should be responsible for passing it, no?

On the document i see an example:

https://sqlkata.com/docs/execution/fetching-records

var db = new QueryFactory(connection, new SqlServerCompiler());

Are we sure the current implementation is correct? Or should the documentation be corrected?
I made a PR to add using statements to the doco.
Don't know what to do about the query factory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions