Gapotchenko.FX.Data.Linq
2022.1.4
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Gapotchenko.FX.Data.Linq --version 2022.1.4
NuGet\Install-Package Gapotchenko.FX.Data.Linq -Version 2022.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gapotchenko.FX.Data.Linq" Version="2022.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gapotchenko.FX.Data.Linq --version 2022.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gapotchenko.FX.Data.Linq, 2022.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Gapotchenko.FX.Data.Linq as a Cake Addin #addin nuget:?package=Gapotchenko.FX.Data.Linq&version=2022.1.4 // Install Gapotchenko.FX.Data.Linq as a Cake Tool #tool nuget:?package=Gapotchenko.FX.Data.Linq&version=2022.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
Gapotchenko.FX.Data.Linq
is a complementary module to System.Data.Linq
library provided as a part of .NET Framework.
The module provides async support for LINQ2SQL technology.
The async support is provided by two extension methods for System.Data.Linq.DataContext
class:
ExecuteQueryAsync
SubmitChangesAsync
Those async methods can be used instead of synchronous ExecuteQuery
and SubmitChanges
alternatives whenever you need to execute a LINQ to SQL query asynchronously.
Example
using Gapotchenko.Data.Linq;
using System.Linq;
using System.Threading.Tasks;
async Task<DateTime> GetCustomerRegistrationDate(string name)
{
using (var db = new ContosoDataContext())
{
var query = db.Customers.Where(x => x.Name == name);
var result = await db.ExecuteQueryAsync(query);
return result.Single().RegistrationDate;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6
- Gapotchenko.FX (>= 2022.1.4)
- Gapotchenko.FX.Threading (>= 2022.1.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.2.5 | 94 | 12/31/2024 |
2024.1.3 | 107 | 11/10/2024 |
2022.2.7 | 479 | 5/1/2022 |
2022.2.5 | 405 | 5/1/2022 |
2022.1.4 | 434 | 4/6/2022 |
2021.2.21 | 447 | 1/21/2022 |
2021.2.20 | 436 | 1/17/2022 |
2021.1.5 | 396 | 7/6/2021 |
2020.2.2-beta | 328 | 11/21/2020 |
2020.1.15 | 472 | 11/5/2020 |
2020.1.9-beta | 355 | 7/14/2020 |
2020.1.8-beta | 320 | 7/14/2020 |
2020.1.7-beta | 353 | 7/14/2020 |
2020.1.1-beta | 424 | 2/11/2020 |
2019.3.7 | 541 | 11/4/2019 |
2019.2.20 | 504 | 8/13/2019 |