Class TriggerArgs
Holds the inserted and deleted collections
Inheritance
System.Object
TriggerArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel.Triggers
Assembly: TimeCockpit.Data.dll
Syntax
public class TriggerArgs
Fields
Empty
Empty/default TriggerArgs.
Declaration
public static readonly TriggerArgs Empty
Field Value
Type | Description |
---|---|
TriggerArgs |
Properties
Deleted
Gets the deleted entity objects.
Declaration
public EntityObject[] Deleted { get; }
Property Value
Type | Description |
---|---|
EntityObject[] |
Inserted
Gets the inserted entity objects.
Declaration
public EntityObject[] Inserted { get; }
Property Value
Type | Description |
---|---|
EntityObject[] |
Methods
Create(DataContext, EntityObject[], TriggerExecutionTime, String, Boolean)
Creates the trigger args from a specified list of entity objects.
Declaration
public static TriggerArgs Create(DataContext context, EntityObject[] entityObjects, TriggerExecutionTime execTime, string includeClause = null, bool autoIncludeRelations = true)
Parameters
Type | Name | Description |
---|---|---|
DataContext | context | The context. |
EntityObject[] | entityObjects | The entity objects. |
TriggerExecutionTime | execTime | The exec time. |
System.String | includeClause | Optional include clause. |
System.Boolean | autoIncludeRelations | Optional auto include setting. |
Returns
Type | Description |
---|---|
TriggerArgs | An instance of TriggerArgs. |