Skip to main content
.NETFramework4.6.2.NETStandard2.0net8.0net9.0

LINQ to DB Compat provides .NET Framework compatibility functionality to leverage migration to .NET.

Published
Aug 14, 2025
1y ago
Total Downloads
7.7K
7,693

Install

dotnet add package linq2db.Compat --version 6.0.0-rc.3
ProductVersions
.NET
net8.0net9.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

LINQ to DB Compat

linq2db.Compat is an additional package that ensures compatibility of linq2db with applications using configuration via System.Configuration.ConfigurationManager (classic app.config/web.config).

📦 Installation

You can install the package via NuGet:

Using NuGet Package Manager Console:

Install-Package linq2db.Compat

Using .NET CLI:

dotnet add package linq2db.Compat

Using PackageReference in csproj:

Add the following line inside the <ItemGroup> section of your .csproj file:

<PackageReference Include="linq2db.Compat" Version="*" />

🚀 Usage

This package allows using connection settings from System.Configuration.ConfigurationManager. To initialize linq2db with settings from app.config or web.config, add the following code:

using LinqToDB;
using LinqToDB.Configuration;

DataConnection.DefaultSettings = LinqToDBSection.Instance;

📌 Example app.config:

<configuration>
  <configSections>
    <section name="linq2db" type="LinqToDB.Configuration.LinqToDBSection, linq2db.Compat" />
  </configSections>
  
  <linq2db defaultConfiguration="DefaultConnection" />
  
  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=.;Initial Catalog=MyDatabase;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="SecondaryConnection" connectionString="Data Source=remote_server;Initial Catalog=OtherDatabase;User Id=user;Password=pass;" providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

🎯 Compatibility

This package is designed to support applications using System.Configuration.ConfigurationManager for linq2db configuration (classic app.config/web.config).

📜 License

This project is distributed under the MIT license.

Changes from Previous Version

No structural changes between v6.0.0-rc.2 and v6.0.0-rc.3.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.