I'm looking for some best practice advice on how to implement a cross-reference feature.
For our application I'd like to have the ability to Cross Reference any object to any other object using a class similar to the following:
Public Class CrossReference
Inherits BaseObject
Private _referenceTo as BaseObject
Private _referenceFrom as BaseObject
Private _comments as String
Public Property RefereneTo() AS BaseObject
Get
Return _referenceTo
End Get
Set (ByVal value as BaseObject)
SetPropertyValue("ReferenceTo", _referenceTo, value)
End Set
End Property
Public Property RefereneFrom() AS BaseObject
Get
Return _referenceFrom
End Get
Set (ByVal value as BaseObject)
SetPropertyValue("ReferenceFrom", _referenceFrom, value)
End Set
End Property
Public Property Comments() AS String
Get
Return _comments
End Get
Set (ByVal value as String)
SetPropertyValue("Comments", _comments, value)
End Set
End Property
End Class
Is there a better way to accomplish this? It also appears that the properties declared as BaseObject don't have an editor displayed on the DetailView.
Thanks in advance for any help.