Skip to content

Commit 2a32cec

Browse files
committed
Improved the output of the <HARMONYCORE_PARAMETER_SAMPLE_DATA> token for date and boolean fields.
1 parent 2d92bb6 commit 2a32cec

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Documentation/CodeGen.chm

200 Bytes
Binary file not shown.

Documentation/CodeGen.hsmx

-959 Bytes
Binary file not shown.

HarmonyCoreExtensions/ParameterSampleData.dbl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,16 @@ namespace HarmonyCoreExtensions
100100
end
101101
(ParameterType.Decimal),
102102
begin
103-
mreturn '1'
103+
using param.CoerceType select
104+
(CoerceType.Boolean),
105+
mreturn "true"
106+
(CoerceType.DateTime),
107+
mreturn "new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day)"
108+
(CoerceType.DateTimeNullable),
109+
mreturn "new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day)"
110+
(),
111+
mreturn '1'
112+
endusing
104113
end
105114
(ParameterType.ImpliedDecimal),
106115
begin

0 commit comments

Comments
 (0)