When I run my application and I click a specific button I get the error:
\"The \"X\" property on \"Y\" could not be set to a \'null\' value. You must set thi
My problem was that my Model database was out of sync with the actual (dev) database. So the EDMX thought it was smallint but the actual column was int. I updated the model database to int and the EDMX to Int32 and now it works.
smallint
int
Int32