Skip to content

Add ability to use existing Npgsql Connection and NpgsqlTransaction #905

Description

@SimonCropp

I would like the ability to perform actions an existing Npgsql Connection and NpgsqlTransaction

so the connection would be open and the transaction in progress

so something like this

        var sessionOptions = new SessionOptions
        {
            ExistingConnection = myNpgsqlConnection,
            ExistingTransaction = myNpgsqlTransaction
        };
        using (var martenSession = martenStore.OpenSession(sessionOptions))
        {

and given the openening of the connection and the begin of the transaction are done outside the scope of the marten session. then the cleanup and commit should also be outside the scope of the session.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions