Gapotchenko.FX.Data.Linq 2026.7.2

Prefix Reserved
dotnet add package Gapotchenko.FX.Data.Linq --version 2026.7.2
                    
NuGet\Install-Package Gapotchenko.FX.Data.Linq -Version 2026.7.2
                    
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="2026.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gapotchenko.FX.Data.Linq" Version="2026.7.2" />
                    
Directory.Packages.props
<PackageReference Include="Gapotchenko.FX.Data.Linq" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Gapotchenko.FX.Data.Linq --version 2026.7.2
                    
#r "nuget: Gapotchenko.FX.Data.Linq, 2026.7.2"
                    
#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.
#:package Gapotchenko.FX.Data.Linq@2026.7.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Gapotchenko.FX.Data.Linq&version=2026.7.2
                    
Install as a Cake Addin
#tool nuget:?package=Gapotchenko.FX.Data.Linq&version=2026.7.2
                    
Install as a Cake Tool

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:

Symbol ✱ denotes an advanced module.

Or take a look at the full list of modules.

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  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.

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
2026.7.2 91 5/16/2026
2026.6.2 128 3/29/2026
2026.5.3 116 2/24/2026
2026.4.2 120 2/4/2026
2026.3.5 116 1/29/2026
2026.2.2 116 1/25/2026
2026.1.5 123 1/13/2026
2025.1.45 216 12/25/2025
2025.1.27-beta 204 10/8/2025
2025.1.26-beta 258 8/30/2025
2025.1.25-beta 600 7/22/2025
2025.1.24-beta 208 7/16/2025
2025.1.23-beta 176 7/12/2025
2024.2.5 240 12/31/2024
2024.1.3 189 11/10/2024
2022.2.7 652 5/1/2022
2022.2.5 569 5/1/2022
2022.1.4 608 4/6/2022
2021.2.21 630 1/21/2022
Loading failed