Represents an event fired at a given modification event (either INSERT, DELETE or UPDATE) at a given time (BEFORE or AFTER).

Event triggers can be of two different main categories: Callback, called for every modification event of the given type on any resource and notified only to the user client Procedure, that executes a procedure (either external, internal or defined as the body of the trigger)

Inheritance: IDbObject
 public TriggerException(Trigger trigger, string message, Exception innerException)
     : base(-1, message, innerException)
 {
     TableName = trigger.TriggerInfo.TableName;
     TriggerName = trigger.TriggerName;
     EventType = trigger.TriggerInfo.EventType;
 }
 private static string FormMessage(Trigger trigger)
 {
     return FormMessage(trigger.TriggerInfo.TableName, trigger.TriggerName, trigger.TriggerInfo.EventType);
 }
 public TriggerException(Trigger trigger, string message)
     : this(trigger, message, null)
 {
 }
 public TriggerException(Trigger trigger)
     : this(trigger, FormMessage(trigger))
 {
 }
 public TriggerException(Trigger trigger, Exception innerException)
     : this(trigger, FormMessage(trigger), innerException)
 {
 }
Example #6
0
 internal TriggerException(Trigger trigger, Exception innerException)
     : this(FormMessage(trigger), innerException)
 {
 }