I'm trying to send a Null value in a DateTime field while calling my stored procedure.
If I use this first method (short with one line), i got the following error message:
Code:
cmd.Parameters["@p_order_date"].Value = (this.OrderDate == DateTime.MaxValue) ? DBNull.Value : this.OrderDate;
Type of conditional expression cannot be determined...