How to automate Subsonic 3 audit fields so they work like Subsonic 2

auditsubsonicsubsonic3

I am using SubSonic 3.0.0.3 in SimpleRepository mode. I was wondering how to get Subsonic 3 to automatically create and populate the createdon, createdby etc audit fields that were standard in version 2.x .

Is this something I have to configure with the T4 templates?

Best Answer

You'll need to use the ActiveRecord templates to get the audit fields to be automatically populated. SimpleRepository doesn't provide any other functionality than simple data access so you'd need to populate these fields yourself.