I couldn’t use ‘decimal’ in actions

Dec 30, 2008 at 8:27 AM
I couldn’t use ‘decimal’ in actions. Is this a known issue?

Whenever I try to have decimals in my actions like in this case:

static void testDecimal(decimal param)

 I get an mpv error similar to the one below:

In class Feature_Orders_Scenario, method testDecimal,
The parameter 'param' of 'testDecimal' does not a have valid modeling type.
A valid modeling type is either: a primitive type, an enum, a string, or a type
that implements 'NModel.Internals.IAbstractValue'.
In particular, collection types in 'System.Collections' and 'System.Collections.
Generic' are not valid modeling types.
Valid modeling types are collection types like 'Set' and 'Map' defined in the 'N
Model' namespace,
as well as user defined types that derive from 'CompoundValue'.
Jan 9, 2009 at 2:48 PM
Support for the decimal value type is indeed missing from the current version of NModel. There is a new feature request in the issue tracking system: http://www.codeplex.com/NModel/WorkItem/View.aspx?WorkItemId=3020