Is the field really generated as a nullable type? This isn't trivial, as there's a project property which switches this off. This means that in the designer, for the field in question, the checkbox that the field should be generated as a Nullable type should be checked. Could you check that for me, please?