ClassCastExcpetion Linq to SQL
- by BitFiddler
I have a column definition in my generated Dbml file:
<Column(Storage:="_Low", DbType:="Decimal(18,2)", UpdateCheck:=UpdateCheck.WhenChanged)>
Public Property Low() As System.Nullable(Of Decimal)
When I try to assign:
With someObject
.Low = 21.33D
End With
I get a ClassCastException when I call db_context.SubmitChanges(). Anyone have an idea why this is?
Thanks