README.md
August 21, 2026 ยท View on GitHub
A production-ready data access platform for .NET applications.
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.
Why RepoDB?
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.
As a Productivity Platform
It goes beyond the ORM with enterprise-grade capabilities for building, operating, and scaling with confidence:
- ๐ฆ Bulk Operations โ High-performance bulk inserts, updates, merges, and deletes built for demanding production workloads.
- ๐ Data Replication โ Scalable data movement and synchronization across multiple database platforms.
- ๐ Telemetry โ Immediate visibility into execution times, failures, and application behavior, with minimal configuration.
As a Hybrid-ORM
It stays close to the metal while remaining easy to use:
- ๐ Easy to Use โ All operations are extension methods on IDbConnection. Open a connection and you're ready to go.
- ๐ High Performance โ Compiled expressions are cached and reused. RepoDB understands your schema to generate the most efficient execution path ahead of time.
- ๐ง Memory Efficient โ Object properties, execution contexts, mappings, and SQL statements are extracted once and reused throughout the lifetime of your application.
- ๐ Hybrid โ Use fluent methods for everyday CRUD, drop down to raw SQL for complex queries, or mix both โ all within the same connection.
- ๐ Battle-Tested โ Backed by thousands of unit and integration tests, and used in production systems worldwide.
- ๐ Always Free โ Apache 2.0 licensed, forever open source.
As a Universal Connector
It bridges different database systems with a single, unified connectivity layer:
- ๐ Universal Connectivity โ Works with any provider that implements IDbConnection, from SQL Server and PostgreSQL to ClickHouse, DB2, Oracle, and more.
- ๐ Cross-Provider Data Movement โ Move data between different database engines without writing hand-rolled conversion logic.
- ๐งฉ Consistent API Surface โ The same fluent methods and conventions work identically regardless of the underlying provider.
- โ๏ธ Provider-Native Optimizations โ Each connector is tuned to exploit the bulk and native capabilities of its target database.
Roadmap
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.
Packages and Build Status
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.
Get Started
Choose your database and follow the quick-start guide:
Explore individual features in the documentation.
Supported Databases
Raw SQL execution methods work with any ADO.NET-compatible provider:
Fluent operations (Query, Insert, Merge, Delete, Update, and more) are supported for DB providers mentioned at get-started section.
Type Coercion
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();
How RepoDB Compares
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, mature tools โ this reflects design tradeoffs, not a ranking.
Telemetry
RepoDB includes opt-in, drop-in telemetry via RepoDb.Telemetry.Default. Enable it once at startup and every operation (Insert, Query, Update, Delete, etc.) is captured and published to your insights collector automatically โ no custom ITrace required.
It comes with great and simple dashboards visualization.
Simply docker compose up -d the docker-compose.yml and .env files and integrate your code.
GlobalConfiguration
.Setup(new GlobalConfigurationOptions { UseRegisteredGlobalTraces = true })
.UseDefaultTelemetry(new DefaultTelemetryOption("<YOUR_APPLICATION_NAME>")
{
Host = "https://your-collector-host",
ApiKey = "YOUR_API_KEY",
Group = "<YOUR_APPLICATION_GROUP>",
Frequency = TimeSpan.FromSeconds(1)
});
It's intentionally lightweight rather than OTel-based, keeping RepoDB's thin, fast footprint intact. See the package README for configuration options, the full OTel rationale, and the roadmap.
Contributions
We welcome contributions of all kinds โ code, docs, bug reports, and ideas.
- Browse for-grabs issues and submit a PR.
- File a new issue to start a discussion.
- Contribute to the documentation site.
- Blog about it, share it, or simply give us a :star:
Community
- GitHub Issues โ bug reports and feature requests.
- Microsoft Teams โ live Q&A and community chat.
- X / Twitter โ news and updates.
Read our contributing page for more.
Resources
- Building the Solutions
- Coding Standards
- Issuing a Pull Request
- Reporting an Issue
- Support Policy
- Limitations
Contributors
Credits
Thanks to all contributors and to Scott Hanselman for featuring RepoDB.
Tools and projects that make RepoDB possible: GitHub, Microsoft Teams, Moq, NuGet, RawDataAccessBencher, Shields, Microsoft.Data.Sqlite, System.Data.SQLite.Core, MySql.Data, MySqlConnector, Npgsql.
License
Apache-2.0 โ Copyright ยฉ 2018 Michael Camara Pendon