Page 1 of 1

Businessobject RegData ignoring nullable types

Posted: Wed Sep 05, 2018 3:37 am
by vineet
Hi,

Stimulsoft supports all nullable datatypes. Yet, when I do a RegData for a business object containing nullable properties (double?, int?), it maps them as their non-nullable representations (double, int). The problem is we have no way to tell whether the data is actually 0 or a null. Can you please fix the RegData method to correctly map the datatypes?

Stimulsoft.Web 2018.2.3

Cheers,
Vineet

Re: Businessobject RegData ignoring nullable types

Posted: Fri Sep 07, 2018 9:58 am
by Lech Kulikowski
Hello,

You can try to use the following option:
StiOptions.Dictionary.UseAllowDBNullProperty = true;

Thank you.

Re: Businessobject RegData ignoring nullable types

Posted: Mon Sep 10, 2018 8:59 am
by vineet
Thank you. Can you please give some explanation on what this property does? Will this map the business object to the correct nullable data types?

Re: Businessobject RegData ignoring nullable types

Posted: Mon Sep 10, 2018 1:07 pm
by Lech Kulikowski
Hello,

This property Allow nullable types.

Thank you.