0
4

1 回答 1

1

Either use a nullable DateTime type (DateTime?) or accept that you'll never have a patient with a date of birth (DoB) that year (unless Jesus is a patient?) and treat those values as if null/empty. In that second case you'd have to modify aggregate commands (averages min/max) to filter out all those with that specific value.

Since everyone should have a DoB, it should really be enforced at record creation time that a DoB is provided (none provided - no record created)... so how often will this even be an issue?

于 2012-04-24T14:02:28.093 回答