Class ModelEntityTypeCondition
- Namespace
- TimeCockpit.Data.DataModel.Actions
- Assembly
- TimeCockpit.Data.dll
Encapsulates information about a condition which determines if the code of a Binding is executable.
public class ModelEntityTypeCondition : Condition, IDynamicMetaObjectProvider, INotifyPropertyChanged
- Inheritance
-
ObjectModelEntityTypeCondition
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChanged
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Remarks
The ModelEntityTypeCondition is the only Condition that is currently supported!
In order to create a valid instance of ModelEntityTypeCondition, the ModelEntity property needs to be set. It does not suffice to only set the ModelEntityName. The latter property is only used for serialilzation purposes.
Constructors
ModelEntityTypeCondition()
Initializes a new instance of the ModelEntityTypeCondition class
public ModelEntityTypeCondition()
ModelEntityTypeCondition(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the ModelEntityTypeCondition class.
public ModelEntityTypeCondition(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
propertiesIEnumerable<KeyValuePair<Object, Object>>Collection of properties.
Properties
MinimumInputSetSize
Gets or sets the minimum number of EntityObjects in InputSet
public int MinimumInputSetSize { get; set; }
Property Value
- Int32
ModelEntity
Gets or sets a model entity that a ModelAction may be applied to.
public ModelEntityBase ModelEntity { get; set; }
Property Value
Remarks
During the validation process of a ModelAction, it is checked that the ModelEntityBase represented by this property is attached to the same Model as the ModelAction it belongs to.
ModelEntityName
Gets or sets the name of the ModelEntity of the current ModelEntityTypeCondition.
public string ModelEntityName { get; set; }
Property Value
- String
Remarks
This property should not be set. It is only used for deferred loading (deserialization) of ModelEntityTypeConditions in the data layer.
Methods
Clone()
Creates a deep copy of the condition.
public override Condition Clone()
Returns
- Condition
Create a deep copy of the condition.
GetStatus(ModelActionContext)
Checks the status a Condition has in respect to a ModelActionContext.
protected override Status GetStatus(ModelActionContext context)
Parameters
contextModelActionContextThe ModelActionContext the ModelAction is to be executed in.
Returns
- Status
The status the Condition has in respect to the given ModelActionContext. See Status.