Class Trigger
Represents a trigger that executes validator and condition if meta object modified.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0Syntax
public class Trigger
  Remarks
Triggerts allows to run custom
Constructors
Trigger()
Initializes a new instance of the Trigger class.
Declaration
public Trigger()
  Trigger(String, String, Boolean, Boolean, Boolean, String, String)
Initializes a new instance of the Trigger class.
Declaration
public Trigger(string name, string description, bool create, bool update, bool delete, string conditionName, string actionName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The name.  | 
      
| System.String | description | The description.  | 
      
| System.Boolean | create | if set to   | 
      
| System.Boolean | update | if set to   | 
      
| System.Boolean | delete | if set to   | 
      
| System.String | conditionName | Name of the condition.  | 
      
| System.String | actionName | Name of the action.  | 
      
Properties
ActionInParameters
Gets or sets the action in parameters.
Declaration
public List<string> ActionInParameters { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<System.String> | The action in parameters.  | 
      
ActionName
Gets or sets the type of the action.
Declaration
public string ActionName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The type of the action.  | 
      
ConditionInParameters
Gets or sets the condition in parameters.
Declaration
public List<string> ConditionInParameters { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<System.String> | The condition in parameters.  | 
      
ConditionName
Gets or sets the type of the condition.
Declaration
public string ConditionName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The type of the condition.  | 
      
Create
Gets or sets the Boolean property value that specifies whether the trigger is fired when meta object is created.
Declaration
public bool Create { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Delete
Gets or sets the Boolean property value that specifies whether the trigger is fired when meta object is deleted.
Declaration
public bool Delete { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Description
Gets or sets the description.
Declaration
public string Description { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The description.  | 
      
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The name.  | 
      
Update
Gets or sets the Boolean property value that specifies whether the trigger is fired when meta object is updated.
Declaration
public bool Update { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Methods
GetActionMethod()
Gets the action method.
Declaration
public TriggerMethodInfo GetActionMethod()
  Returns
| Type | Description | 
|---|---|
| TriggerMethodInfo | 
GetConditionMethod()
Gets the condition method.
Declaration
public TriggerMethodInfo GetConditionMethod()
  Returns
| Type | Description | 
|---|---|
| TriggerMethodInfo |