tags:

views:

19

answers:

0

Hi

Below are some virtual methods that I really became fond of in v2.x :) Is there any chance that they make a come back?

of course it is easy to add them myself. This is I suspect a bit the purpose?

Sincerely Edward

SubSonic 2.x virtuals


protected virtual void BeforeValidate() {}

    /// <summary>
    /// Executes on existing records after validation and before the update command has been generated.
    /// </summary>
    protected virtual void BeforeUpdate() {}

    /// <summary>
    /// Executes on existing records after validation and before the insert command has been generated.
    /// </summary>
    protected virtual void BeforeInsert() {}

    /// <summary>
    /// Executes after all steps have been performed for a successful ActiveRecord Save()
    /// </summary>
    protected virtual void AfterCommit() {}