Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Active Record....
Eeeeeeeewewwwwwwwwwewwww.
A lot of pus, pimples and slow pokes. -
Crost41082yIf you don't mind explaining, what problems does it cause? I've never heard of an active record ORM but Google says it's data stored in memory
-
@Crost
Active Record - an object representating a single row of a database
Repository pattern - you shift from a row centric view to usually a table centric view -
Crost41082y@IntrusionCM even with EF you get a single record put and represent it with an object. But I guess the ORM itself represents single records then.
Thanks -
@Crost Yes and no.
An active record ORM is usually fixed on representing a single object as a row.
If you want to e.g. bulk update, the active record object would load, modify, store, reload each object - it's an row focused paradigm.
An entity framework (I'm sure that you mean MS entity framework which fits this too, but I mean entity framework in general) isn't fixed to one paradigm.
You can usually mix several patterns in an entity framework.
An active record ORM is by some considered an anti-pattern....
Related Rants
Look at that. The very fucking smart colleague spent 40 days implementing a repository pattern (WHEN WE'RE USING AN ACTIVE RECORD ORM), breaking stuff left and right. Does he use that fucking pattern at the very least?
Of course he doesn't. And along the way he's making sure to create conflicts with the stuff he broke (and I'm fixing). By the time I fix the merge conflicts of one commit, he pushed 6 of them.
rant
repository pattern
colleague
merge conflict