I'm looking to add a navigational property to my 'Registration' class, so I can access the parent 'Person'.
Ideally, I would be able to add Public Overrideable Property ParentPerson as Person
, but I can't seem to get this to work as it complains about the principle end of association.
Public Class Person
<Required()>
Public Property ID As Integer
<Required()>
<StringLength(150)>
Public Property Firstname As String
<Required()>
<StringLength(150)>
Public Property Lastname As String
Public Overridable Property Registration As Registration
End Class
Public Class Registration
<Required()>
Public Property ID As Integer
Public Property RegistrationDate As Date
Public Overridable Property Sessions As List(Of RegistrationSession)
End Class