You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.Generate a .VB DataContext file with a Sqlite database
2.Create an entity of any class, and set one of its numeric property to 0
What is the expected output? What do you see instead?
I expect for the property to be set properly. Instead, the private property
value remains Nothing.
What version of the product are you using? On what operating system?
Please provide any additional information below.
Here's an example :
<Column(Storage:="_insertionDate", Name:="insertionDate", DbType:="INTEGER", AutoSync:=AutoSync.Never), _
DebuggerNonUserCode()> _
Public Property InsertionDate() As System.Nullable(Of Integer)
Get
Return Me._insertionDate
End Get
Set(value As System.Nullable(Of Integer))
If (_insertionDate <> value) Then
Me.OnInsertionDateChanging(value)
Me._insertionDate = value
Me.OnInsertionDateChanged()
End If
End Set
End Property
In this example, the value i'm trying to set is zero. The problem is in the
test if (_insertionDate <> value) Then.
Instead of returning True, this test compares Nothing (the current value of the
private field) with value (0). This test returns False, and the propery is
never set.
Original issue reported on code.google.com by igelineau@gmail.com on 21 Sep 2011 at 3:01
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
igelineau@gmail.com
on 21 Sep 2011 at 3:01The text was updated successfully, but these errors were encountered: