Table of Contents

Class TypedParameter

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

Represents a parameter that has a ModelEntity that is attached to a Model.

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

Remarks

In order to create a valid instance of TypedParameter, the ModelEntity property needs to be set. It does not suffice to only set the ModelEntityName property. The latter property is only used for serialization purposes.

Optionally, the name of an EntityView can be provided. If the latter is provided, the form with the name is taken to represent ModelEntity visually. As with ModelEntity, the EntityView must be attached to the Model the ModelAction is attached to.

Constructors

TypedParameter()

Initializes a new instance of the TypedParameter class

public TypedParameter()

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

Initializes a new instance of the TypedParameter class.

public TypedParameter(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 override ModelEntityBase ModelEntity { get; set; }

Property Value

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.

ModelEntityForm

Gets or sets a string representing the name of an Form for a TypedParameter

public string ModelEntityForm { get; set; }

Property Value

String

ModelEntityName

Gets or sets the name of the ModelEntity of the current TypedParameter.

public string ModelEntityName { get; set; }

Property Value

String

Remarks

This property should not be set. It is only used for deferred loading (deserialization) of TypedParameters in the data layer.

Methods

Clone()

Creates a deep copy of the model action parameter definition.

public override 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 override ModelEntityBase GetModelEntity()

Returns

ModelEntityBase

An instance of ModelEntityBase