Table of Contents

Class ModelActionParameterDefinition

Namespace
TimeCockpit.Data.DataModel.Actions
Assembly
TimeCockpit.Data.dll

Provides a parameter definition for a ModelAction. A ModelActionParameterDefinition defines how a parameter for a ModelAction looks like. Parameters of a ModelAction are represented with EntityObjects. That is, a ModelActionParameterDefinition has a property ModelEntity which represents the "blueprint" of the parameter EntityObject.

public abstract class ModelActionParameterDefinition : NamedDynamicObject, IDynamicMetaObjectProvider, INotifyPropertyChanged
Inheritance
Object
ModelActionParameterDefinition
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
Derived
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Remarks

Up to now, only TypedParameters are supported as ModelActionParameterDefinitions for ModelActions.

Constructors

ModelActionParameterDefinition()

Initializes a new instance of the ModelActionParameterDefinition class

public ModelActionParameterDefinition()

ModelActionParameterDefinition(IEnumerable<KeyValuePair<Object, Object>>)

Initializes a new instance of the ModelActionParameterDefinition class.

public ModelActionParameterDefinition(IEnumerable<KeyValuePair<object, object>> properties)

Parameters

properties IEnumerable<KeyValuePair<Object, Object>>

Collection of properties.

Properties

ModelEntity

Gets or sets the ModelEntityBase that is the template for the parameter (= an EntityObject) that is handed to a ModelAction

public abstract ModelEntityBase ModelEntity { get; set; }

Property Value

ModelEntityBase

Remarks

This property should not be called to fetch the ModelEntityBase. Use GetModelEntity() instead. This is because classes that inherit from this ModelActionParameterDefinition do not necessarily have a full ModelEntityBase. For an example see the currently unsupported AnonymousParameter.

Methods

Clone()

Creates a deep copy of the model action parameter definition.

public abstract ModelActionParameterDefinition Clone()

Returns

ModelActionParameterDefinition

Returns a deep copy of the model action parameter definition.

GetModelEntity()

Gets the ModelEntityBase that is used as template for a parameter (= an EntityObject) that is passed to a ModelAction.

public abstract ModelEntityBase GetModelEntity()

Returns

ModelEntityBase

An instance of ModelEntityBase.