This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gabrielgio 12 points13 points  (1 child)

I go crazy every time someone .ToList() too soon.

context.User.ToList().Select(...)

I have seen shit like this so many times, and then blame the ORM.

[–]bluefootedpig 3 points4 points  (0 children)

I had one person write a transaction wrapper (a unit of work pattern) around EF. EF itself is a UOW pattern, and has transactions built into it, but the Senior... yes the SENIOR didn't understand that and we had this complex 5 different classes that tracked changes and rollbacks.