Businessobject RegData ignoring nullable types

Stimulsoft Reports.WEB discussion
Post Reply
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Businessobject RegData ignoring nullable types

Post 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
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Businessobject RegData ignoring nullable types

Post by Lech Kulikowski »

Hello,

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

Thank you.
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Re: Businessobject RegData ignoring nullable types

Post 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?
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Businessobject RegData ignoring nullable types

Post by Lech Kulikowski »

Hello,

This property Allow nullable types.

Thank you.
Post Reply