Class Condition<TEntity>
Condition.
Implements
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
Inherited Members
Namespace: ISynergy.Framework.Automations.Conditions
Assembly: ISynergy.Framework.Automations.dll
Syntax
public class Condition<TEntity> : AutomationModel, IObservableClass, IBindable, ICondition where TEntity : class, new()
Type Parameters
Name | Description |
---|---|
TEntity |
Constructors
View SourceCondition(Guid, Func<TEntity, Boolean>)
Default constructor.
Declaration
public Condition(Guid automationId, Func<TEntity, bool> validator)
Parameters
Type | Name | Description |
---|---|---|
Guid | automationId | |
Func<TEntity, System.Boolean> | validator |
Properties
View SourceConditionId
Gets or sets the ConditionId property value.
Declaration
public Guid ConditionId { get; }
Property Value
Type | Description |
---|---|
Guid |
Operator
Gets or sets the ConditionType property value.
Declaration
public OperatorTypes Operator { get; set; }
Property Value
Type | Description |
---|---|
OperatorTypes |
Validator
Gets or sets the Validator property value.
Declaration
public Func<TEntity, bool> Validator { get; set; }
Property Value
Type | Description |
---|---|
Func<TEntity, System.Boolean> |
Methods
View SourceValidateCondition(Object)
ValidateAction object with given conditions.
Declaration
public bool ValidateCondition(object entity)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo