In C# I get this value for a datetime2
type:
{01/01/0001 00:00:00}
Which is because the client is send empty value. In database it throws error:
The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
@DateGeneral datetime2 = null
in database and procedure.
How do I cover it?