We have a database view which includes a UNION query. The first SELECT statement in the query pulls a not null DateTime field. The second SELECT statement deliberately has a NULL in place of this field.
When we asked EF to "Update model from database" the object it created has a standard DateTime to represent this field, rather than a Nullable. So every time it selects records from the view which have NULLS for this field, it falls over.
Is there any way, besides making the field in the original table nullable, that we can get EF to treat this as a nullable field?