Entity Framework Non-nullable column is mapped to a nullable entity property

JK. picture JK. · Apr 10, 2012 · Viewed 10.2k times · Source

I am getting this nullable column error message in Entity Framework 4.1 - when the column is not actually nullable:

Non-nullable column MyView.RunningTotal in table TransactionListView 
is mapped to a nullable entity property.

But you can see from the screenshots below that the column is not nullable and that the entity property is not nullable either. So why is this error occurring?

enter image description here

Answer

ILya picture ILya · Apr 13, 2012

The straight-forward solution is to manually specify Nullable parameter to True.