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)

Наследование: IDbObject
Пример #1
0
 public TriggerException(Trigger trigger, string message, Exception innerException)
     : base(-1, message, innerException)
 {
     TableName = trigger.TriggerInfo.TableName;
     TriggerName = trigger.TriggerName;
     EventType = trigger.TriggerInfo.EventType;
 }
Пример #2
0
 private static string FormMessage(Trigger trigger)
 {
     return FormMessage(trigger.TriggerInfo.TableName, trigger.TriggerName, trigger.TriggerInfo.EventType);
 }
Пример #3
0
 public TriggerException(Trigger trigger, string message)
     : this(trigger, message, null)
 {
 }
Пример #4
0
 public TriggerException(Trigger trigger)
     : this(trigger, FormMessage(trigger))
 {
 }
Пример #5
0
 public TriggerException(Trigger trigger, Exception innerException)
     : this(trigger, FormMessage(trigger), innerException)
 {
 }
Пример #6
0
 internal TriggerException(Trigger trigger, Exception innerException)
     : this(FormMessage(trigger), innerException)
 {
 }