Hi,
I'm pretty new to LLBLGen so this may have been anwered but I haven't been able to find one.
LLBLGen Pro 3.1
Entity Framework 4 Selftracking Pocos
When I try to change a nullable date value in an entity it does not change the value. (either by my code or databinding from a control)
The value before the change is nothing. After the change the value is nothing.
The code which is causing it not to change is located in the model entity class.
This is the property code
<DataMember> _
public Property Xx_Srch_Avail_From As Nullable(Of System.DateTime)
Get
Return _xx_Srch_Avail_From
End Get
Set
If Not (_xx_Srch_Avail_From = Value) Then
ChangeTracker.RecordOriginalValue("Xx_Srch_Avail_From",_xx_Srch_Avail_From)
OnXx_Srch_Avail_FromChanging(Value)
_xx_Srch_Avail_From = Value
OnPropertyChanged("Xx_Srch_Avail_From")
OnXx_Srch_Avail_FromChanged()
End If
End Set
End Property
When I step through the code and try the following in the immediate window
?Not (_xx_Srch_Avail_From = Value)
I get 'Nothing' instead of a boolean value of true therefore it never enters the if statement to make the change.
This seems to only by happening with dates, everything else strings and integers work fine
(I only have nullable on dates)
What can I do to rectify this?
Many thanks for your time