Last post Dec 18, 2008 02:15 PM by tahmoures
Dec 18, 2008 01:12 PM|tahmoures|LINK
I have four fields in my table to use for auditing:
ModifiedBy (GUID : UserId)
CreatedBy (GUID : UserId)
I don't need to show these fields when user is inserting or updating, but I still need to save those in database.
What's the best way to do this?
Dec 18, 2008 02:00 PM|ricka6|LINK
You're in luck - sjnaughton
answered this exact question in the last week or two. Steve has an
article on his site showing how to do this with EF.
I should tell you that it's better to let the DB insert the time (using Default(dateTime)) and use a trigger on insert.
Dec 18, 2008 02:15 PM|tahmoures|LINK
That's exactly what I was looking for... thank you!