Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use transactions => fails rollback. No need to correct failures.

Important concepts: .NoTracking and setting the EntityState correctly ( mark as deleted, updated, ... )

Additionally, sometimes it's easier to update things granularly, instead of all at once.

I suppose the annoyance comes from updating in bulk on a POST and trying to map everything?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: