Skip to content

System.Data.Common and SqlClient: Async variants for remaining blocking APIs #18225

@divega

Description

@divega

The following potentially blocking APIs currently don't have async variants:

  1. DbTransaction.Commit()
  2. DbConnection.Close()
  3. DbConnection.BeginTransaction()
  4. DbTransaction.Rollback()

Ideally default implementations should be added to the base classes of the ADO.NET provider model which fallback to the sync implementations (following the same pattern we have for the other async methods) and proper async implementations should be added to SqlClient.

Related to dotnet/SqlClient#65.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-needs-workAPI needs work before it is approved, it is NOT ready for implementationarea-System.Datahelp wanted[up-for-grabs] Good issue for external contributors

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions