in

CodeSmith Community

Your Code. Your Way. Faster!

Default Value for Nullable<DateTime> and Nullable<Boolean>

Last post 01-26-2007 10:07 AM by Robert Hinojosa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-26-2007 7:32 AM

    • Actarus
    • Not Ranked
    • Joined on 01-10-2007
    • Posts 2
    • Points 70

    Default Value for Nullable<DateTime> and Nullable<Boolean>

    Hi there,

    Question about the default value for System.DateTime? | System.Boolean? variables in entities:

    • View Entity => DateTime.MinValue | false
    • Table entity => null | null

    Is this by design (if so, could you shed some light as why)?

    Thenx!

    Regards,

    Michael Tautz

    P.S.: Many, many, many kudos to this community for doing an excellent job Yes

    • Post Points: 35
  • 01-26-2007 10:07 AM In reply to

    Re: Default Value for Nullable<DateTime> and Nullable<Boolean>

    The latest version of the templates has that fixed.  For some reason the 2.0.1 version release on the website got reverted back to 2.0.0, I'm going to update that again.

    Robert Hinojosa

    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams

    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems