Add Nullable Type Support


Add nullable type support for properties that support null values.

file attachments


elmarg wrote Jun 11, 2008 at 9:38 AM

Hi guys, i'm very new to this framework and just recently downloaded and started experimenting with it. I almost immediately missed the Nullable type support for a 'DateOfBirth' column in my database. Yesterday I ventured a look at the actual templates (based on build 17373) and was able to get a working version with nullable type support with only a few changes. Obviously I'm not sure if it is fool-proof but it is definitely working for me.

I don't know how this process works but if you want the modified sources I'll be glad to email them to you.
Kind regards,


elmarg wrote Jun 19, 2008 at 7:02 PM

Attached you find the two files (codesmith templates) that I modified in order to get support for Nullable<Type> working for rev. 17373.

wrote Jun 19, 2008 at 7:02 PM

banderson wrote Jun 26, 2008 at 4:40 PM

Thanks for the help!

wrote Feb 21, 2009 at 11:22 AM

wrote Feb 14, 2013 at 12:16 AM