Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.23 KB

File metadata and controls

50 lines (33 loc) · 1.23 KB

Mindbox.Data.Linq

A fork of Microsoft's System.Data.Linq (LINQ to SQL) that enables multi-assembly extensibility and compatibility with modern .NET.

Why this fork?

The original System.Data.Linq ships as a single sealed assembly. This fork splits the internals across multiple DLLs, making it possible to extend the query pipeline — custom SQL translators, mapping providers, and diagnostics hooks — without reflection hacks.

Target framework

net8.0

Installation

dotnet add package Mindbox.Data.Linq

Usage

Drop-in replacement for System.Data.Linq. Replace the namespace import and use DataContext as usual:

using System.Data.Linq;

using var context = new DataContext(connectionString, mappingSource);
var results = context.GetTable<Order>()
    .Where(o => o.CustomerId == customerId)
    .ToList();

Key differences from System.Data.Linq

Feature System.Data.Linq Mindbox.Data.Linq
Multi-assembly extensibility
.NET 10 array.Contains() in queries
Target framework netstandard2.0 net8.0

Building

dotnet restore
dotnet build --configuration Release
dotnet test

License

MIT — see LICENSE.txt.