CodeMethodParam Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class CodeMethodParam : IObjectWithId, IObjectWithGuid, ICloneable
The CodeMethodParam type exposes the following members.
| Name | Description | |
|---|---|---|
| CodeMethodParam |
| Name | Description | |
|---|---|---|
| ActionId |
It is the parameter's method
| |
| DataType |
Only following dataTypes are valid: Text, Integer, DateTime, Decimal or Boolean
It defines what type of "Map to value" or "Map to property" is allowed
| |
| Id | ||
| MapTo |
If the readonly flag == MapTo.Property,
map to property is selected for the param,
else (MapTo.Value), map to value selected
| |
| Name | ||
| ParamDirection | ||
| ParamProperty |
It is used for holding property for "Map to property" of the method parameters:
setProperty is treated as an integer type property
data type of it is defined by DataType property of the class
| |
| ParamState |
Flag used for indicating
1. whether the parameter is a newly created, or an existing one.
2. if an existing one, it specifys whether it has been changed or not.
3. if changed, it signifies whether it is dataType- and/or direction-change
| |
| ParamValue |
It is used for holding value for "Map to value" of the method parameters:
data type of it is defined by DataType property of the class
| |
| UId |
| Name | Description | |
|---|---|---|
| Clone | ||
| Create(String, ParamDirection, Boolean, CodeMethod) | ||
| Create(String, ParamDirection, Int32, CodeMethod) | ||
| Create(String, ParamDirection, String, CodeMethod) | ||
| Create(String, PropertyDataType, ParamDirection, BaseProperty, CodeMethod) | ||
| GetDataTypeStr | ||
| GetDirectionStr | ||
| IsValidPropertyDataType |
Will return false if the given data type is none of the following:
PropertyDataType.Text, .Integer, .DateTime, .Decimal or .Boolean
| |
| ResetAll |
Resets the id etc. of the object.
The method is used when making a copy of an existing object.
|
| Name | Description | |
|---|---|---|
| ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) | |
| ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) | |
| ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| IObjectWithGuid.GetGuid | ||
| IObjectWithId.GetId |