A hybrid ORM library for .NET.
RepoDB is a high-performance data productivity platform for .NET developers. At its core is the popular hybrid-ORM library for .NET with clean and easy APIs.
It provides the flexibility to work the way you want — all through the IDbConnection interface. Write raw SQL when you need absolute control, or use the fluent APIs for more productivity, and switch seamlessly between both without sacrificing performance or maintainability.
RepoDB solves a complex problem in the .NET data access space: making bulk operations simple. It is designed to efficiently move millions of records across different database providers. Imagine migrating massive datasets from legacy databases to modern, cloud-native platforms — efficiently, reliably, and with high performance.
It goes beyond the ORM with enterprise-grade capabilities for building, operating, and scaling with confidence:
It stays close to the metal and remaining lightweight:
It bridges different database systems with a single, unified connectivity layer:
RepoDB is evolving from an ORM into a broader data productivity platform, with Data Engineering capabilities — moving data between providers, on-premise or cloud-native — on the roadmap.
Read more about this through this article.
Fluent operations (Query, Insert, Merge, Delete, Update, and more), batches and bulks are supported for DB providers mentioned below. Choose your database and follow the quick-start guide:
While raw SQL execution methods work with any ADO.NET-compatible provider:
Explore individual features in the documentation.
We have envisioned the following databases to be supported to further grow the ecosystem.
RepoDB ships as a core package plus provider-specific packages for each supported database, with optional bulk-operations add-ons.
See the full package list and build status.
Every supported database has a dedicated bulk-operations add-on (BulkInsert, BulkMerge, BulkUpdate, BulkDelete), each built on top of that provider's own fastest data-loading mechanism, with sync and async variants:
| DB Provider | Sync | Async | Class |
|---|---|---|---|
| ClickHouse | ✅ | ✅ | ClickHouseBulkCopy / OPTIMIZE_ON_INSERT |
| DB2 | ✅ | ✅ | DB2BulkCopy Native (Sync) / Db2BulkArrayBinder (Async Native) |
| EnterpriseDB | ✅ | ✅ | EDBBulkCopy (via RepoDb.Connector.EnterpriseDb) via Npgsql Native |
| Firebird | ✅ | ✅ | FirebirdCommandBatcher (via FbBatchCommand) Native |
| MariaDB | ✅ | ✅ | MariaDbBulkCopy (via RepoDb.Connector.MariaDb) Native |
| MariaDB Connector | ✅ | ✅ | MariaDbBulkCopy (via RepoDb.Connector.MariaDbConnector) Native |
| MySQL | ✅ | ✅ | MySqlBulkCopy (via MySqlBulkLoader Native) |
| MySQL Connector | ✅ | ✅ | MySqlConnectorBulkCopy Native |
| Oracle | ✅ | ✅ | OracleBulkCopy Native / OracleBulkArrayBinder (Async Native) |
| PostgreSQL | ✅ | ✅ | NpgsqlBinaryImporter Native |
| SAP HANA | ✅ | ⚠️ | HanaBulkCopy Native (Sync) / AsyncOverAsync or SapHanaCommandBatcher |
| SQL Server | ✅ | ✅ | SqlBulkCopy Native |
| Vertica | ✅ | ⚠️ | VerticaBulkCopy (via VerticaCopyStream) / Async over Sync |
RepoDB uses ADO.NET's native coercion by default, keeping type mismatches visible and explicit. To enable automatic conversion:
GlobalConfiguration
.Setup(new Options.GlobalConfigurationOptions()
{
ConversionType = ConversionType.Automatic
})
.UseSqlServer();RepoDB sits between a micro-ORM and a full ORM. Each tool below makes different tradeoffs — pick the one that fits your project:
| RepoDB | Dapper | Entity Framework | |
|---|---|---|---|
| Abstraction level | ✅ Hybrid — fluent CRUD + raw SQL | ❌ Micro-ORM — raw SQL mapping | ✅ Full ORM — LINQ, change tracking |
| Fluent CRUD API | ✅ Yes (Insert, Query, Update, Delete, Merge, more) | ❌ No — SQL per call | ✅ Yes, via LINQ/DbSet |
| Raw SQL | ✅ Yes, mixed freely with fluent calls | ✅ Yes — its core model | ✅ Yes, via FromSql |
| Change tracking | ❌ None | ❌ None | ✅ Yes |
| Migrations | ❌ None built-in | ❌ None built-in | ✅ Yes (EF Migrations) |
| Native Bulk | ✅ Built-in, cross-provider | ❌ Via extensions | ❌ Via extensions/third-party |
| Insights / telemetry | ✅ Built-in (RepoDb.Telemetry.Default) | ❌ None built-in — manual or third-party (e.g. MiniProfiler) | ✅ Built-in logging/interceptors; OTel via community packages |
| Performance | ✅ Close to raw ADO.NET | ✅ Close to raw ADO.NET | ❌ Overhead from tracking/materialization |
| Best fit | ✅ EF-like productivity without losing SQL control | ✅ Thinnest possible SQL-to-object mapper | ✅ Rich object graphs, LINQ, migrations |
Dapper and Entity Framework are both excellent, mat
No open issues yet, or sync has not completed.