static void Database_BeforeUpdate(object sender, DatabaseUpdateArg e) { if (e.DataItem != null) { Type dataitemType = e.DataItem.GetType(); foreach (var capture in TypeCaptures) { if (dataitemType.FullName == capture.DataItemType.FullName) { capture.BeforeUpdate(sender, e); } } } }
public virtual void AfterUpdate(object database, DatabaseUpdateArg e) { }
public virtual void BeforeUpdate(object database, DatabaseUpdateArg e) { }