|
|
|
|
|
by htgb
211 days ago
|
|
Are you referring to the change tracker? FYI you can have it skip tracking as the default (or per query), but when you actually want to make changes you better opt in with `.AsTracking()`. Anyway, I've used EF at work for about a decade and I'm happy with it. I surely have blind spots since I haven't used other ORMs in that time, but some things I like are: - Convenient definition of schema. - Nice handling of migrations. - LINQ integration - Decent and improving support for interceptors, type converters and other things to tailor it to our use cases. What ORM do you prefer, and how does it differ by being stateless? How does saving look like, for example? |
|
The main issue with EF is ultimately there is an expression builder that maps linq expressions to sql. This mostly works, until it doesn't, or it does but has strange generated sql and performance. If all you are doing is CRUD or CRUD adjacent then it's fine. But for some complex stuff you spend a lot of time learning the innards of EF, logging generated statements, etc. It is time better spent writing good sql, which something like Dapper allows.