Error 3031: Problem in mapping fragments starting at line 439:Non-nullable column D_LINK.CARTON_QTY in table D_LINK is mapped to a nullable entity property.
I have a view D_LINK
with a column
CARTON_QTY(int, not null)
I dont understand where is my problem do i have to make it null \ how?
refresh the table in your edmx from your database (In model browser, right-click-->Update Model From database --> update tab --> select your table -->click update)
The error says that your column in the table / view is not nullable but the property of the class in entity model is nullable. They must both be either nullable or not nullable.
Just delete that particular table from the model and add it again. That will solve your problem.
I got this issue after changing a none-nullable column to a nullable one. What solved it for me was the following:
One of the actions alone did not solve my problem(feels like a glitch). Hope this can help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With