Nullable variables

Today I went to infer my schema once again, and suddenly various values that before were generated with ? variables like "DateTime?" are being generated as "DateTime" without the nullable symbol. Did you guys made any change to that code generation? Because of this I am running in many "System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.DateTime'." errors of this type, from int to DateTime.

Yes, we’ve fixed case where nullable database fields were mapped to non nullable properties and vice versa

1 Like