I have a DAL where I convert the null values ββof a database to their equivalent representation in C #. For instance:
NULL for Numeric = 0 NULL for String = String.Empty NULL for DateTime = "1/1/0001" (ie DateTime.MinValue)
The problem, by date, lies in the presentation layer, especially in GridViews. You cannot show 1/1/01
users.
What I did was check if myDate.Year=1 or myDate.Year < AcceptedDate
and display an empty string, but this seems to be an extra effort, unlike other types
Please open for a better approach. Thanks.
source share