README.md

August 17, 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.

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 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 also addresses a common tension in data access: choosing between the raw performance and control of manual ADO.NET and the productivity of a full-featured ORM. RepoDB brings both together โ€” without forcing a trade-off.

As a Hybrid-ORM

It stays close to the metal while remaining easy to use:

FeatureDescription
๐Ÿ‘Œ Easy to UseAll operations are extension methods on IDbConnection. Open a connection and you're ready to go.
๐Ÿš€ High PerformanceCompiled expressions are cached and reused. RepoDB understands your schema to generate the most efficient execution path ahead of time.
๐Ÿง  Memory EfficientObject properties, execution contexts, mappings, and SQL statements are extracted once and reused throughout the lifetime of your application.
๐Ÿ”€ HybridUse fluent methods for everyday CRUD, drop down to raw SQL for complex queries, or mix both โ€” all within the same connection.
๐Ÿ† Battle-TestedBacked by thousands of unit and integration tests, and used in production systems worldwide.
๐Ÿ†“ Always FreeApache 2.0 licensed, forever open source.

As a Productivity Platform

It goes beyond the ORM with enterprise-grade capabilities for building, operating, and scaling with confidence:

FeatureDescription
๐Ÿ“ฆ Bulk OperationsHigh-performance bulk inserts, updates, merges, and deletes built for demanding production workloads.
๐Ÿ”„ Data ReplicationScalable data movement and synchronization across multiple database platforms.
๐Ÿ“Š TelemetryImmediate visibility into execution times, failures, and application behavior, with minimal configuration.
๐Ÿ—„๏ธ Multi-DB SupportA growing range of relational database providers with a consistent development experience.

Packages and Build Status

ProjectNugetDownloadsStatus
CoreBuild
SQL ServerBuild
SQL Server (Bulk)Build
Oracle ๐Ÿ†•Build
Oracle (Bulk) ๐Ÿ†•Build
PostgreSQLBuild
PostgreSQL (Bulk)Build
MySQLBuild
MySQL (Bulk) ๐Ÿ†•Build
MySQL ConnectorBuild
MySQL Connector (Bulk) ๐Ÿ†•Build
MariaDB ๐Ÿ†•Build
MariaDB (Bulk) ๐Ÿ†•Build
IBM DB2 ๐Ÿ†•Build
IBM DB2 (Bulk) ๐Ÿ†•Build
SQLiteBuild
Telemetry (Core) ๐Ÿ†•Build
Telemetry (Default) ๐Ÿ†•Build

Get Started

Choose your database and follow the quick-start guide:

Explore individual features in the documentation.

Want visibility into what your operations are doing in production? See Telemetry ๐Ÿ†• below to enable opt-in insights with a couple lines of code.

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 SQL Server, Oracle, MySQL, PostgreSQL, IBM DB2 and SQLite.

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:

RepoDBDapperEntity 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
    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.

Community

Read our contibuting page for more.

Resources

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