Generated by DocFX

Class Condition<TEntity>

Condition.

Inheritance
System.Object
ObservableClass
AutomationModel
Condition<TEntity>
Implements
IObservableClass
IBindable
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
ICondition
Inherited Members
AutomationModel.AutomationId
ObservableClass.AutomaticValidationTrigger
ObservableClass.Properties
ObservableClass.IsDirty
ObservableClass.IsValid
ObservableClass.Equals(Object)
ObservableClass.GetHashCode()
ObservableClass.GetValue<T>(String)
ObservableClass.SetValue<T>(T, String)
ObservableClass.SetValue<T>(T, T, String)
ObservableClass.ClearErrors()
ObservableClass.Validate(Boolean)
ObservableClass.Revert()
ObservableClass.MarkAsClean()
ObservableClass.AddValidationError(String, String)
ObservableClass.Errors
ObservableClass.Error
ObservableClass.Item[String]
ObservableClass.ErrorsChanged
ObservableClass.OnErrorsChanged(String)
ObservableClass.GetErrors(String)
ObservableClass.HasErrors
ObservableClass.PropertyChanged
ObservableClass.OnPropertyChanged(String)
ObservableClass.Dispose()
ObservableClass.Dispose(Boolean)
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 Source

Condition(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 Source

ConditionId

Gets or sets the ConditionId property value.

Declaration
public Guid ConditionId { get; }
Property Value
Type Description
Guid
View Source

Operator

Gets or sets the ConditionType property value.

Declaration
public OperatorTypes Operator { get; set; }
Property Value
Type Description
OperatorTypes
View Source

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 Source

ValidateCondition(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

IObservableClass
IBindable
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
ICondition

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)