C# Database

Open-source C# projects categorized as Database

Top 23 C# Database Projects

  1. Entity Framework

    EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

    Project mention: Where to find Open Source C# Projects to contribute to | dev.to | 2024-07-15

    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

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

    CodeRabbit logo
  3. Bogus

    :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.

    Project mention: Iterations | dev.to | 2024-12-22

    Code which uses Bogus NuGet package for random data.

  4. LiteDB

    LiteDB - A .NET NoSQL Document Store in a single data file

    Project mention: Local migrations for embedded SQLite in F# | dev.to | 2024-03-02

    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.

  5. Event Store

    EventStoreDB, the event-native database. Designed for Event Sourcing, Event-Driven, and Microservices architectures

  6. PKHeX

    Pokémon Save File Editor

    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

  7. RavenDB

    ACID Document Database

  8. Npgsql

    Npgsql is the .NET data provider for PostgreSQL.

    Project mention: Can AI Write Production-Ready Code? What Every Developer Should Know | dev.to | 2024-10-03

    PostgreSQL Npgsql Link

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. FluentMigrator

    Fluent migrations framework for .NET

    Project mention: How To Create Migrations For Multiple Databases in EF Core | dev.to | 2025-02-04

    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.

  11. SqlKata Query Builder

    SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird

    Project mention: You Probably Don't Need Query Builders | news.ycombinator.com | 2025-01-25

    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/

  12. LINQ to DB

    Linq to database provider.

    Project mention: Google's New Pipe Syntax in SQL | news.ycombinator.com | 2024-08-28

    There is https://github.com/linq2db/linq2db which is LINQ to SQL reincarnated.

    Of course there's EF Core too.

  13. Marten

    .NET Transactional Document DB and Event Store on PostgreSQL

    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.

  14. Pomelo.EntityFrameworkCore.MySql

    Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector

    Project mention: MySQL with EF Core 9 in ABP: Avoiding Translation Issues | dev.to | 2025-01-31

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

  15. efcore.pg

    Entity Framework Core provider for PostgreSQL

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

  17. Realm Xamarin

    Realm is a mobile database: a replacement for SQLite & ORMs

  18. Yessql

    A .NET document database working on any RDBMS

  19. 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
  20. Insight.Database

    Fast, lightweight .NET micro-ORM

  21. Evolve

    Database migration tool for .NET and .NET Core projects. Inspired by Flyway.

  22. NPoco

    Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco

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

  24. monitor-table-change-with-sqltabledependency

    Get SQL Server notification on record table change

  25. Cassandra

    DataStax C# Driver for Apache Cassandra

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C# Database discussion

Log in or Post with

C# Database related posts

  • How To Create Migrations For Multiple Databases in EF Core

    1 project | dev.to | 4 Feb 2025
  • Eagle: Extensible Adaptable Generalized Logic Engine for the CLR

    1 project | news.ycombinator.com | 30 Dec 2024
  • Iterations

    3 projects | dev.to | 22 Dec 2024
  • Data API builder: modern REST, GraphQL endpoints to Databases and on-prem stores

    1 project | news.ycombinator.com | 5 Dec 2024
  • Net 9.0 LINQ Performance Improvements

    16 projects | news.ycombinator.com | 18 Oct 2024
  • Can AI Write Production-Ready Code? What Every Developer Should Know

    2 projects | dev.to | 3 Oct 2024
  • CISA boss: Makers of insecure software are the real cyber villains

    1 project | news.ycombinator.com | 20 Sep 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 7 Feb 2025
    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 →

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

Sponsored
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.
coderabbit.ai

Did you know that C# is
the 10th most popular programming language
based on number of references?