I have upgraded from 1.1 to 2.0 and I am now using VS2005 rather than VB.NET 2003
I had the following custom code in my entity:
Public Overrides Property durationofstay() As Integer
Get
Return MyBase.DurationOfStay
End Get
Set(ByVal Value As Integer)
'If Me.CheckOut <> Me.CheckIn.AddDays(Value) Then
If Value > 0 Then
Me.CheckOut = Me.CheckIn.AddDays(Value)
MyBase.DurationOfStay = Value
Me.AmendNightRoomRates()
Else
MyBase.DurationOfStay = 0
End If
'End If
End Set
End Property
Now if I paste that into my new project, I get the error property 'durationofstay' cannot be declared 'Overrides' because it does not override a property in a base class.
I have tried looking through the help files and doing searches and I didn't find much other than I can't add my own custom code areas which was one thought I had...
Any help would be greatly appreciated.
Cheers,
James