Remix.run Logo
yndoendo 7 hours ago

Last time I tried Entity Framework it was slow. Replaced it with Dapper and a simple custom migration system. This took database validation and seeding from 10 seconds to less than 2 seconds during startup on low powered hardware with SQLite. The queries created by Entity had pointless cascade of multiple join statements.

I have been reaching for GO with simple tooling and HTTP back end. .NET is useful for other solutions.

I have had too many issues with their frameworks, like WPF, needing to implement Win32 hacks. Example, .Net 9 was the first Windows version that properly returns all network interfaces. Older runtimes only expose Enabled NICs. I still have to maintain Windows 7 support for some solutions.

qingcharles an hour ago | parent | next [-]

I just went the other way and tore all my Dapper + SQL and repositories out of a big project and switched it all to EF Core 10. Not noticed any change in performance but dumped thousands of lines of unnecessary code. I like the tighter code, but you definitely do need to keep your eye on the "magic" of EF to avoid it doing anything goofy that isn't easily visible.

yread 30 minutes ago | parent | prev | next [-]

The trick with EF Core is to let it do the simple stuff and if you need anything more complicated than .Include write the query yourself.

b0m an hour ago | parent | prev | next [-]

We use newer Entity Framework (Core) in a few large projects with zero issues. Even have Dapper and moving away from it as it brings nothing to the table but strings and bunch of SQL.

vjvjvjvjghv 6 hours ago | parent | prev | next [-]

We are also running into more and more performance issues with EF. There are ways to tune it but I am not sure if it’s worth learning this for EF or if it’s not better to just go for straight SQL. Seems MS has this tendency to create abstractions that then don’t work 100%. I see this with .NET too. Often you have to go down to Win32 for apps that are tightly coupled with Windows and hardware.

oaiey an hour ago | parent | next [-]

Is not that the core problem with ORMs. All of them. In the end you do straight SQL when it comes to Performance.

Limeray 5 hours ago | parent | prev [-]

[dead]

cyptus 2 hours ago | parent | prev | next [-]

ef core is great for simple queries and modification of your data while using the changetracker. You can use AsNoTracking/Projection to perform similar like dapper for queries. When using command query seperation you can also use dapper for queries and ef core for commands.

RagnarD 2 hours ago | parent | prev [-]

What version was it?