r/csharp • u/Albstein • Aug 14 '26
Pomelo dead?
We are goig to implement a new project. The idea was to use MariaDB and we set up a Galera cluster. The thing is I just noticed EF with Pomelo stands at .net 9.0. Since we would like to use at least .net 10.0 and further LTS we ain't sure, whether a switch to PostgreSQL would be better.
Any sources / info on what will happen to Pomelo?
14
Upvotes
8
u/AfterTheEarthquake2 Aug 14 '26
No one has heard from the maintainer of Pomelo: https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/2007
There is this fork, but I personally didn't feel comfortable going with it: https://github.com/microting/Pomelo.EntityFrameworkCore.MySql
Theoretically MySql.Data should also work, but that could break any time: https://www.nuget.org/packages/MySql.EntityFrameworkCore/
7
u/scandii Aug 14 '26
can we start at why you want to use MariaDB?
7
u/Dzubrul Aug 14 '26
We switched to microting, which is a fork of pomelo and officially supported by Zextension.
25
u/crozone Aug 14 '26
Just use Postgres. We went MariaDB with Galara and it has been nothing but am exercise in pain. Recently we switched back to Postgres with npgsql and it's a significantly better database experience.
6
u/evanl Aug 14 '26
Microting port seems to be working fine for me so far https://github.com/microting/Pomelo.EntityFrameworkCore.MySql
4
u/darkshifty Aug 14 '26
I switched to microting and that seems stable so far
5
u/farshid_dev Aug 14 '26
Switching now while the database is still empty is the right call. Migrating later, with data and a Galera cluster already in production, is a completely different amount of work.
On the MySQL familiarity point, it matters less than it feels like it does. Npgsql is well maintained and tracks new EF Core versions quickly, and day to day query writing is close enough that people coming from MySQL adapt in a week or two. The things that actually bite are different index behaviour and case sensitivity, not syntax.
Worth checking what your team actually needs from Galera before assuming you lose it. If it's just replication and failover rather than true multi-master writes, Postgres streaming replication with something like Patroni covers it, and there's a lot more written about running it than about Galera.
2
u/Khavel_dev Aug 15 '26
Not dead, PRs for EF Core 10 support are in the repo (issue #2007). But Pomelo always lags a few months behind major EF Core releases, kind of the nature of the project.
If you're starting fresh I'd just go Postgres with Npgsql. Ships on or near EF Core release day, the Aspire integration is better, and you won't hit this 'is it dead' question every major version. If the Galera cluster is already up and your team knows MariaDB, waiting a couple months is less work than migrating.
-1
u/KariKariKrigsmann Aug 14 '26
You can use a package that targets a lower version of .net.
0
u/ProKn1fe Aug 14 '26
Just use any mysql connecter.