Where a model uses nullable values such as
public Nullable<int> Price { get; set; }
When adding new records all is fine, Price is Not a required field so will be saved as Null value in the database.
If I modify an existing record, let’s say I want to change the value of price from 10 to blank. Then I get a validation error.
Validation error: ‘Price‘ must be an integer between the values of -2147483648 and 2147483647
However this field is not required so I would have expected it to just save a null value?