# linq2db/linq2db

Linq to database provider.

Repository: https://github.com/linq2db/linq2db
Canonical: https://ross.abutalabs.com/products/linq2db
Language: C#
License: MIT
License Family: permissive
Topics: linq, database, orm, sql, access, db2, firebird, informix, mysql, postgresql, sap-hana, sqlce, sqlite, mssql, mariadb, bulk-inserts, dotnet, oracle, sqlserver, clickhouse
Last push: 2026-08-26T21:27:58+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 5555, "days_push": 7, "days_rel": 27, "gap_med": 57, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3322, forks 479 (observed 2026-08-28T04:07:56.305095+00:00)

## What it is
LINQ to DB is a fast, lightweight LINQ database access library for .NET that provides a type-safe layer between POCOs and databases. It sits above micro-ORMs like Dapper by offering compile-time checked LINQ queries while avoiding the overhead of change-tracking ORMs like Entity Framework.

## Use cases
- query databases with type-safe LINQ instead of raw SQL strings
- perform bulk inserts and bulk copies into SQL Server, PostgreSQL, or ClickHouse
- use advanced SQL features like CTEs, window functions, and MERGE from C#
- access many databases (Oracle, DB2, Firebird, Informix, SAP HANA) through one API
- get faster data access than Entity Framework without change tracking
- write database queries that are checked by the C# compiler and refactorable
- use LINQ-style database access from F#

## When to choose
- you want type-safe SQL with LINQ and minimal abstraction overhead
- you need high-performance data access with bulk copy and advanced SQL support
- you find Entity Framework too heavy but Dapper too string-based
- you need broad multi-database support in a single .NET library

## When to avoid
- you rely on automatic change tracking and unit-of-work semantics
- you want a full-featured ORM with migrations and lazy loading out of the box
- your project is not on the .NET platform

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver, serialization
- domain: databases, backend, web-development, developer-tools
- platform: dotnet, cross-platform, windows
- tags: linq, sql, micro-orm, type-safe, bulk-insert, csharp, fsharp, clickhouse, postgresql, sqlserver, mysql, sqlite, oracle, linux, macos

## Member repositories
- linq2db/linq2db (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.305095+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:49.537948+00:00, confidence not recorded.
  - readme: https://github.com/linq2db/linq2db (fetched 2026-08-28T04:07:56.305095+00:00, sha 05c19fb26477)
- Data as of 2026-08-30T08:39:29.467469+00:00.
