Condition Class | 
Namespace: Omada.OE.Model
[SerializableAttribute] public class Condition : IObjectWithId, IObjectWithGuid, ICloneable
The Condition type exposes the following members.
| Name | Description | |
|---|---|---|
| AnyFieldChanged | 
            If set, then a change on just one of the fields will fullfil the condition.
            If not set, all the fields must be changed for the condition to evaluate to true.
              | |
| ConditionType | ||
| Fields | ||
| Filter | 
            Filter is normally null (even though FilterId > 0).
              | |
| FilterId | 
            DataObjectFilter Id. Can be 0 (not all conditions have a filter).
              | |
| FirstTimeCheckPeriod | 
            Only used if FirstTimeOnly is true.
            If so the event will fire once in every period of time.
            FirstTimeCheckPeriod is ignored if it is zero - meaning that the event will only fire once.
              | |
| FirstTimeOnly | 
            Used when event type is either TimerExecuted or ObjectModified.
            If true the event will only fire once or once every period as specified in FirstTimeCheckPeriod.
              | |
| HasFirstTimeCheckPeriod | 
            Has a (valid) period been specified?
              | |
| Id | ||
| UId | 
| Name | Description | |
|---|---|---|
| AddFilterExpression | 
            Adds a new expression that will be created for the filter when the condition is saved.
              | |
| Clone | ||
| RemoveInvalidConditionFields | 
            Removes the condition fields whoes properties are not in the common properties of the filter data object types
              | |
| ResetAll | 
            Resets the id etc. of the object.
            The method is used when making a copy of an existing object.
              | 
| Name | Description | |
|---|---|---|
| ToBool | 
            Converts object to boolean.
              (Defined by ObjectExtensions.) | |
| ToDateTime | 
            Converts object to DateTime.
              (Defined by ObjectExtensions.) | |
| ToInt | 
            Converts object to integer.
              (Defined by ObjectExtensions.) | 
| Name | Description | |
|---|---|---|
| IObjectWithGuid.GetGuid | ||
| IObjectWithId.GetId |