I can guarantee your coworker knows less about EF than Julie. That said, the post discusses EF 4.3 and things may have changed since. EF 6.02 is the current version.
I agree with Naomi and Kevin. Don't do this at the application layer.
>We're having a debate about whether to use EF AddOrUpdate.
>
>According to Julie Lerman at
http://thedatafarm.com/data-access/take-care-with-ef-4-3-addorupdate-method/ you should only use AddOrUpdate when doing Data Migrations during development.
>
>My co-workers are saying that using AddOrUpdate is acceptable even though it makes a round trip query to the database to see if the record exists in order to determine whether it creates an update or an insert command. I've seen that in SQL Profiler.
>
>And Julie makes other arguments against its use as well.
>
>Thanks.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer