I\'ve got a DateTime? that I\'m trying to insert into a field using a DbParameter. I\'m creating the parameter like so:
DateTime?
DbParameter
Ah ha! I found an even more efficient solution than @Trebz's!
datePrm.Value = nullableDate ?? (object)DBNull.Value;