Automatic update of AddBy and EditedBy fields in SubSonic

I have a data model that includes common columns like addedBy, editby (user), addDate, editDate.

Is there a setting that I can use in SubSonic 2.1 that will automatically update these fields appropriately, instead of being explicitly specified in every update?

0


source to share


1 answer


Check out http://subsonicproject.com/setup/subsonic-conventions/ . SubSonic takes a conventions-based approach when it comes to audit columns. If you can change the column names to CreatedBy, ModifiedBy, CreatedOn, and ModifiedOn, respectively, they will automatically update. I don't think there is a way to change what these names might be without changing the SubSonic source code.



+3


source







All Articles