Skip to content

adriangodong/system-data-async

Repository files navigation

System.Data.Async

This library adds interfaces and adapters to allow working with async methods available in System.Data abstract classes but not interfaces.

Latest Release

Release

Latest master Build

Latest

Sample migration

-   // With System.Data.Common
+   // With System.Data.Async

    // Construct a new Connection object.
-   System.Data.Common.SqlClient.SqlConnection connection =
-       new System.Data.SqlClient.SqlConnection("connection string");
+   System.Data.Async.SqlClient.ISqlConnectionAsync connection =
+       new System.Data.Async.SqlClient.SqlConnectionAsync("connection string");

    // Construct a new Command object.
-   System.Data.Command.SqlClient.SqlCommand     command = connection.CreateCommand();
+   System.Data.Async.SqlClient.ISqlCommandAsync command = connection.CreateCommand();

    // Open Connection.
    await connection.OpenAsync();

    // Get DataReader object.
-   System.Data.SqlClient.SqlDataReader            reader = await command.ExecuteReaderAsync();
+   System.Data.Async.SqlClient.SqlDataReaderAsync reader = await command.ExecuteReaderAsync();

Installation

  • Get release packages from NuGet
  • Get pre-release packages from AppVeyor NuGet Feed
    • Feed URL: https://ci.appveyor.com/nuget/system-data-async

Documentation

About

Async interfaces and adapters for System.Data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages