Why is CheckBoxFor producing runtime error
- by Picflight
The field the CheckBox is wired to is nullable.
On my view I get the following error:
Cannot implicitly convert type 'bool?'
to 'bool'
<%= Html.CheckBoxFor(model => model.Product.Exclusive) %>
How do I fix it without having to change the database design?