Skip to content

mikependon/RepoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,985 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Version MsTeams

RepoDB — a Hybrid ORM for .NET

RepoDB is a fast, lightweight, and open-source .NET ORM that gives you the best of both worlds: the simplicity of a micro-ORM and the power of a full ORM — without the overhead.

Write raw SQL when you need full control. Use fluent methods when you want productivity. Switch between them freely, in the same codebase.

Packages and Build Status

Project Nuget Downloads Status
RepoDb Build
RepoDb.SqlServer Build
RepoDb.MySql Build
RepoDb.MySqlConnector Build
RepoDb.PostgreSql Build
RepoDb.SQLite.System Build
RepoDb.Sqlite.Microsoft Build
RepoDb.SqlServer.BulkOperations Build
RepoDb.PostgreSql.BulkOperations Build

Why RepoDB?

Expand to learn more

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 by Design — 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.

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

Type Coercion

RepoDB uses ADO.NET's native coercion by default, keeping type mismatches visible and explicit. To enable automatic conversion:

RepoDb.Converter.ConversionType = ConversionType.Automatic;

Contributions

We welcome contributions of all kinds — code, docs, bug reports, and ideas.

Community

Resources

Contributors

Credits

Thanks to all contributors and to Scott Hanselman for featuring RepoDB.

ATools 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