tags:

views:

144

answers:

2

Ruby on Rails has magic timestamping fields that are automatically updated when a record is created or updated. I'm trying to find similar functionality in Entity Framework. I've considered database triggers and a SavingChanges event handler. Is there a more obvious method I'm overlooking?

A: 

If you're using MS SQL Server, use a timestamp field. The value itself is meaningless, other than to tell you whether the record has been touched since your last retrieve.

Robert C. Barth
A: 

I resorted to a SavingChanges event handler. Details on my blog.

Dave Dunkin

related questions