You can add a custom property to your business object that returns the object’s primary key value. This will cause the primary key value to be displayed in the list of possible tag values when you configure the list view. The custom property would look something like
''' <summary>
''' Compound Primary Key
''' </summary>
''' <remarks></remarks>
<Browsable(False), _
BusinessFieldDisplayInEditor(), _
Description("CompoundPrimaryKey"), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property [PrimaryKey]() As MicroFour.StrataFrame.Business.PrimaryKeyValue
Get
Return Me.GetPrimaryKeyValue()
End Get
End Property
Make sure you add the custom property descriptor so the property is bindable. While this will get you the results you’re looking for, I try to stay away from compound keys since they are not really supported by the database deployment toolkit.
-Larry