using System; namespace Pariveda.DataAccess35.Business { /// /// Partial class that supports audit capabilities /// internal partial class AdventureWorksDataContext { /// /// Inserts the customer and updates the modified date /// /// The instance of the customer being inserted partial void InsertCustomer(Customer instance) { instance.ModifiedDate = DateTime.Now; ExecuteDynamicInsert(instance); } /// /// Updates the customer and updates the modified date /// /// The instance of the customer being updated partial void UpdateCustomer(Customer instance) { instance.ModifiedDate = DateTime.Now; ExecuteDynamicUpdate(instance); } /// /// Inserts the customer address and updates the modified date /// /// The instance of the address being inserted partial void InsertCustomerAddress(CustomerAddress instance) { instance.ModifiedDate = DateTime.Now; ExecuteDynamicInsert(instance); } /// /// Updates the customer address and updates the modified date /// /// The instance of the address being updated partial void UpdateCustomerAddress(CustomerAddress instance) { instance.ModifiedDate = DateTime.Now; ExecuteDynamicUpdate(instance); } } }