CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

SmartDate in ver 3.5

Last post 08-26-2008, 4:20 PM by tkhan. 1 replies.
Sort Posts: Previous Next
  •  08-26-2008, 8:57 AM 25738

    SmartDate in ver 3.5

    Hi,

    This may have been answered before and I am sure someone must have come across this issue. The first statement in the ConvertTo method in the SmartDateConverter.cs in the framework casts the value that is passed into the method to a SmartDate type. If the app is using a nullable smartDate type then the runtime will throw an exception which is happening in our case.

    Are there any workarounds to this issue or what does the community suggest we do in this case? Thanks!!

     

     

  •  08-26-2008, 4:20 PM 25750 in reply to 25738

    Re: SmartDate in ver 3.5

    I think I am going to answer my own question. I dont think it is advisable to use a nullable smartDate since the framework assigns a minValue in cases where the date is actually null or empty. Thanks
View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems