Gapotchenko.FX.Data.Linq
2025.1.24-beta
Prefix Reserved
See the version list below for details.
dotnet add package Gapotchenko.FX.Data.Linq --version 2025.1.24-beta
NuGet\Install-Package Gapotchenko.FX.Data.Linq -Version 2025.1.24-beta
<PackageReference Include="Gapotchenko.FX.Data.Linq" Version="2025.1.24-beta" />
<PackageVersion Include="Gapotchenko.FX.Data.Linq" Version="2025.1.24-beta" />
<PackageReference Include="Gapotchenko.FX.Data.Linq" />
paket add Gapotchenko.FX.Data.Linq --version 2025.1.24-beta
#r "nuget: Gapotchenko.FX.Data.Linq, 2025.1.24-beta"
#:package Gapotchenko.FX.Data.Linq@2025.1.24-beta
#addin nuget:?package=Gapotchenko.FX.Data.Linq&version=2025.1.24-beta&prerelease
#tool nuget:?package=Gapotchenko.FX.Data.Linq&version=2025.1.24-beta&prerelease
Overview
Gapotchenko.FX.Data.Linq
is a complementary module to System.Data.Linq
library which is 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;
}
}
Commonly Used Types
Gapotchenko.FX.Data.Linq.DataContextExtensions
Other Modules
Let's continue with a look at some other modules provided by Gapotchenko.FX:
- Gapotchenko.FX
- Gapotchenko.FX.AppModel.Information
- Gapotchenko.FX.Collections
- Gapotchenko.FX.Console
- Gapotchenko.FX.Data
- Gapotchenko.FX.Diagnostics
- Gapotchenko.FX.IO
- Gapotchenko.FX.Linq
- Gapotchenko.FX.Math
- Gapotchenko.FX.Memory
- Gapotchenko.FX.Numerics ✱
- Gapotchenko.FX.Reflection.Loader ✱
- Gapotchenko.FX.Runtime.InteropServices ✱
- Gapotchenko.FX.Security.Cryptography
- Gapotchenko.FX.Text
- Gapotchenko.FX.Threading
- Gapotchenko.FX.Tuples
Symbol ✱ denotes an advanced module.
Or take a look at the full list of modules.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.1
- Gapotchenko.FX (>= 2025.1.24-beta)
- Gapotchenko.FX.Threading (>= 2025.1.24-beta)
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 |
---|---|---|
2025.1.25-beta | 488 | 7/22/2025 |
2025.1.24-beta | 132 | 7/16/2025 |
2025.1.23-beta | 102 | 7/12/2025 |
2024.2.5 | 131 | 12/31/2024 |
2024.1.3 | 131 | 11/10/2024 |
2022.2.7 | 542 | 5/1/2022 |
2022.2.5 | 471 | 5/1/2022 |
2022.1.4 | 500 | 4/6/2022 |
2021.2.21 | 520 | 1/21/2022 |
2021.2.20 | 505 | 1/17/2022 |
2021.1.5 | 468 | 7/6/2021 |
2020.2.2-beta | 412 | 11/21/2020 |
2020.1.15 | 560 | 11/5/2020 |
2020.1.9-beta | 440 | 7/14/2020 |
2020.1.8-beta | 406 | 7/14/2020 |
2020.1.7-beta | 438 | 7/14/2020 |
2020.1.1-beta | 521 | 2/11/2020 |
2019.3.7 | 636 | 11/4/2019 |
2019.2.20 | 605 | 8/13/2019 |