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
Check your model & database both should be defined accordingly....
public Int32? X { get; set; } ----> Nullable Accordingly in DB 'X' should be Nullable = True
or
public Int32 X { get; set; } ----> not Nullable Accordingly in DB 'X' should be Nullable = false