Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Top 23 C# Database Projects
-
Entity Framework
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
This is by far the easiest and most straight forward way to contribute to an open-source project. If you have worked with an open-source Library, framework, or extension, making contributions will be easier as you are already familiar with what that project is about. Two popular examples are Entity Framework Core and MSTest
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Bogus
:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Code which uses Bogus NuGet package for random data.
-
Personally, I used to use LiteDB which is a NoSQL version which in v4 paired very nicely with F# thanks to Zaid's lovely LiteDB.FSharp library. Sadly, when v5 showed up, a lot of the F# niceties were lost given how the API was changed and v5 was not very F# friendly. You can still use it of course but you fall back to more unsafe F# code which is not ideal.
-
Event Store
EventStoreDB, the event-native database. Designed for Event Sourcing, Event-Driven, and Microservices architectures
-
Project mention: Japanese Police Arrest Man for Tampering with Pokémon Violet Save Data | news.ycombinator.com | 2024-04-12
I'd eat my shoe if the dude wasn't just using exactly that https://github.com/kwsch/PKHeX
-
-
Project mention: Can AI Write Production-Ready Code? What Every Developer Should Know | dev.to | 2024-10-03
PostgreSQL Npgsql Link
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
In our products we use EF Core and we need to create migrations that are supported for all 3 databases. And we use Fluent Migrator library for this purpose. It allows creating database migration using the fluent syntax that is further translated to the needed SQL for each particular database.
-
SqlKata Query Builder
SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
It seems to me a big part of the problem is that the "query builder" in TFA is little more than a string builder. In the .Net world I've used SqlKata [0] and been very pleased with it. It allows you to easily dynamically build and compose queries.
0: https://sqlkata.com/
-
There is https://github.com/linq2db/linq2db which is LINQ to SQL reincarnated.
Of course there's EF Core too.
-
Project mention: Mongo but on Postgres and with strong consistency benefits | news.ycombinator.com | 2024-07-07
You can check Marten, that I was co-maintaining: https://martendb.io/. It doesn't have MongoDB-compliant API, but it's mature, stable and efficient.
-
Pomelo.EntityFrameworkCore.MySql
Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector
ABP Framework's MySQL provider (Volo.Abp.EntityFrameworkCore.MySQL) relies on Pomelo.EntityFrameworkCore.MySql NuGet package. However, as of now, the stable 9.0.0 version of this package has not been released. (You can follow the upgrade status from https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/1841, if you want).
-
-
Entity Framework 6
This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.
-
-
-
data-api-builder
Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
Project mention: Data API builder: modern REST, GraphQL endpoints to Databases and on-prem stores | news.ycombinator.com | 2024-12-05 -
-
-
NPoco
Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
-
EntityFramework-Reverse-POCO-Code-First-Generator
EntityFramework Reverse POCO Code First Generator - Beautifully generated code that is fully customisable. This generator creates code as if you reverse engineered a database and lovingly created the code by hand. It is free to academics (you need a .edu or a .ac email address), not free for commercial use. Obtain your licence from
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# Database discussion
C# Database related posts
-
How To Create Migrations For Multiple Databases in EF Core
-
Eagle: Extensible Adaptable Generalized Logic Engine for the CLR
-
Iterations
-
Data API builder: modern REST, GraphQL endpoints to Databases and on-prem stores
-
Net 9.0 LINQ Performance Improvements
-
Can AI Write Production-Ready Code? What Every Developer Should Know
-
CISA boss: Makers of insecure software are the real cyber villains
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 7 Feb 2025
Index
What are some of the best open-source Database projects in C#? This list will help you:
# | Project | Stars |
---|---|---|
1 | Entity Framework | 13,903 |
2 | Bogus | 9,051 |
3 | LiteDB | 8,751 |
4 | Event Store | 5,390 |
5 | PKHeX | 3,844 |
6 | RavenDB | 3,648 |
7 | Npgsql | 3,400 |
8 | FluentMigrator | 3,303 |
9 | SqlKata Query Builder | 3,166 |
10 | LINQ to DB | 3,037 |
11 | Marten | 2,926 |
12 | Pomelo.EntityFrameworkCore.MySql | 2,766 |
13 | efcore.pg | 1,602 |
14 | Entity Framework 6 | 1,435 |
15 | Realm Xamarin | 1,268 |
16 | Yessql | 1,249 |
17 | data-api-builder | 985 |
18 | Insight.Database | 873 |
19 | Evolve | 858 |
20 | NPoco | 851 |
21 | EntityFramework-Reverse-POCO-Code-First-Generator | 710 |
22 | monitor-table-change-with-sqltabledependency | 657 |
23 | Cassandra | 644 |