I've been using the following method to store the primary key value of whatever record is being referenced. I would then call the Content.Id method to retrieve that value for sql commands.
My question is - is this good practice? One other told me I should make a session item instead.
This is my ContentDA class
Public Shared Property Id() As Integer
Get
Return _ContentId
End Get
Set(ByVal value As Integer)
_ContentId = value
End Set
End Property
This is Content class
Public Shared Property Id() As Integer
Get
Return ContentDA.Id
End Get
Set(ByVal value As Integer)
ContentDA.Id = value
End Set
End Property