C# ADO.NET: nulls and DbNull — is there more efficient syntax? May 12, 2023 by Tarik Ah ha! I found an even more efficient solution than @Trebz’s! datePrm.Value = nullableDate ?? (object)DBNull.Value;