Re: [gentle-devel] NullValue for Decimals
Brought to you by:
mnmr
From: Morten M. <gop...@li...> - 2005-07-29 22:16:07
|
Hi Max, did you resolve the problem below? I don't really have any useful advice except to use a debugger to track down the cause of the problem. If it's somewhere in Gentle then I'd like to find and squash it :) Yours, Morten Maximilian Gärber wrote: > Hi Morten, Martin, > > I had MagicValue=0 on the property, after upgrading to 1.2.5, I set it > to NullValue=0 > and am getting following exception: > > The column 0 has an invalid NullValue. > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: Gentle.Common.GentleException: The column 0 has an > invalid NullValue. > > Source Error: > > > Line 324: { > Line 325: if( this.priceDetails == null ) > Line 326: this.priceDetails = new > GentleList(typeof(PriceDetails), this ); > Line 327: return this.priceDetails; > Line 328: } > > > > > Morten Mertner wrote: > >> Hi Max, >> >> you can use NullValue=0 for int and decimal, or the NullOption enum >> if you need to pick Min/Max for either decimal or datetime. >> >> Yours, >> Morten >> >> >> Maximilian Gärber wrote: >> >>> Hi All, >>> >>> I just updated to 1.2.5. >>> How can I define a NullValue for Decimals (except Min/Max), for >>> example my >>> desired NullValue of 0.0m will not be accepted. >>> >>> Thanks, >>> >>> Max >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>> from IBM. Find simple to follow Roadmaps, straightforward articles, >>> informative Webcasts and more! Get everything you need to get up to >>> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >>> _______________________________________________ >>> Gopf-devel mailing list >>> Gop...@li... >>> https://lists.sourceforge.net/lists/listinfo/gopf-devel >> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Gopf-devel mailing list >> Gop...@li... >> https://lists.sourceforge.net/lists/listinfo/gopf-devel > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Gopf-devel mailing list > Gop...@li... > https://lists.sourceforge.net/lists/listinfo/gopf-devel |