DotNet-ORM-Cookbook
This repository is meant to show how to perform common tasks using C# with variety of ORMs. (by TortugaResearch)
Marten
.NET Transactional Document DB and Event Store on PostgreSQL (by JasperFx)
DotNet-ORM-Cookbook | Marten | |
---|---|---|
9 | 23 | |
334 | 2,670 | |
0.9% | 0.8% | |
0.0 | 9.8 | |
almost 2 years ago | 3 days ago | |
C# | C# | |
The Unlicense | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
DotNet-ORM-Cookbook
Posts with mentions or reviews of DotNet-ORM-Cookbook.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-06.
- Dapper vs. Entity Framework With Postgres
-
How do you do DB crud for your .NET apps? EF? Dapper? ADO.NET?
ORM Cookbook: https://tortugaresearch.github.io/DotNet-ORM-Cookbook/
- What is the best PostgreSQL ORM tool for use in a .NET Framework 4.7 application?
-
What was used before LINQ to SQL
Here is a list of examples using ADO and NHibernate. https://tortugaresearch.github.io/DotNet-ORM-Cookbook/
-
"ORMs have a special place in my heart, not entirely unlike Brutus and Caesar: a dear friend who betrays you and leaves you to die a slow, painful death." – Taming SQL and ORMs with sqlc
You can see a comparison in the ORM Cookbook. https://tortugaresearch.github.io/DotNet-ORM-Cookbook/ and this (out of date) post https://github.com/TortugaResearch/Chain/wiki/A-Chain-comparison-to-Dapper.
- Alternatives to EF.Core
-
Why most people use Dapper instead of EF Raw Queries?
The .NET ORM Cookbook revealed some areas where it could be improved. https://github.com/TortugaResearch/DotNet-ORM-Cookbook
-
Warning about Dapper + PostgreSQL in .NET 6
I was really surprised when I updated the ORM Cookbook to .NET 6 and saw this. If you want to play with the code, it is at... https://github.com/Grauenwolf/DotNet-ORM-Cookbook
Marten
Posts with mentions or reviews of Marten.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-06.
- Marten – .NET Transactional Document DB and Event Store on PostgreSQL
-
Dapper vs. Entity Framework With Postgres
Id recommend trying out MartenDb. It's not really a PostgreSQL ORM, it actually uses Postgres more as a document database via jsonb. But it's excruciatingly easy to use and schema updates are a breeze (and largely automatic)
-
Show HN: Light implementation of Event Sourcing using PostgreSQL as event store
Check out Marten for a fully fleshed out implementation https://github.com/JasperFx/marten
-
Is anyone using Dapr
We are using ExtCore here to make our app modular: https://extcore.net/, and MartenDB for event store (which is surprisingly VERY simple) : https://martendb.io/
-
Yet another embedded DB (kind of)
I always loved Marten, it is so simple to use and yet powerful. If you are unfamiliar with it, it is a data access library (like an ORM) that is using JSON serialization and LINQ to store and query data from/to Postgres. It basically turns Postgres into document DB. Comparing it to EF, Marten doesn't require migrations since it stores documents.
-
This article is covering the potential problems you will face when using MongoDB for typical relational tasks.
You're better off using Postgres (has JSON columns.) If you want a more "document" oriented experience, use Marten: https://martendb.io/
-
Self-Paced Kit: Introduction to Event Sourcing with Node.js and TypeScript
For that part, the samples use EventStoreDB (https://www.eventstore.com/), which is the only mature event store I know in Node.js land. Event Sourcing allows using any database as backing storage. I'm co-maintainer of the Marten (https://martendb.io/), which is a .NET library that allows using Postgres as event store and document db.
-
CQRS is simpler than you think with C#11 and .NET 7!
Then you should check out Marten (https://martendb.io/). Our intention is to remove the boilerplate, we're using Postgres e having the built-in projections.
- Event-driven projections in Marten explained
-
Marten, a Crystal web framework that makes building web apps productive and fun
Not to be confused with the C# document database built on Postgres.
https://martendb.io/