Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 228
JK. Avatar asked Apr 10 '12 01:04

JK.


1 Answers

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

like image 125
ILya Avatar answered Sep 28 '22 02:09

ILya