Class ModelEntityTypeCondition
Encapsulates information about a condition which determines if the code of a Binding is executable.
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel.Actions
Assembly: TimeCockpit.Data.dll
Syntax
public class ModelEntityTypeCondition : Condition, IDynamicMetaObjectProvider, INotifyPropertyChanged
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
Declaration
public ModelEntityTypeCondition()
ModelEntityTypeCondition(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the ModelEntityTypeCondition class.
Declaration
public ModelEntityTypeCondition(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Object, System.Object>> | properties | Collection of properties. |
Properties
MinimumInputSetSize
Gets or sets the minimum number of EntityObjects in InputSet
Declaration
public int MinimumInputSetSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ModelEntity
Gets or sets a model entity that a ModelAction may be applied to.
Declaration
public ModelEntityBase ModelEntity { get; set; }
Property Value
Type | Description |
---|---|
ModelEntityBase |
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.
Declaration
public string ModelEntityName { get; set; }
Property Value
Type | Description |
---|---|
System.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.
Declaration
public override Condition Clone()
Returns
Type | Description |
---|---|
Condition | Create a deep copy of the condition. |
Overrides
GetStatus(ModelActionContext)
Checks the status a Condition has in respect to a ModelActionContext.
Declaration
protected override Status GetStatus(ModelActionContext context)
Parameters
Type | Name | Description |
---|---|---|
ModelActionContext | context | The ModelActionContext the ModelAction is to be executed in. |
Returns
Type | Description |
---|---|
Status | The status the Condition has in respect to the given ModelActionContext. See Status. |