W
wildman
Looking at an old web application.A popular .net code generation tool
was apparently used to generated a Data and/or Business Layer of
classes for the ap.
For whatever reason, it seems to have generated two VB class per
table, one with the table name and the other with the prefix Col (as
in collection I presume).
When we look at the ColTBL.vb source for example we see something
like this:
Public Class colTBL
Inherits System.Collections.CollectionBase
#Region "List Data Structure"
Public Structure s_TBL
Private m_F1Key As Integer
Private m_F2Data As String
Public Property F1Key() As Integer
Get
Return m_UMKey
End Get
Set(ByVal Value As Integer)
m_F1Key = Value
End Set
End Property
I'm a bit perplexed, and likely some OOP learning curve thingie. But
Another developer said this class is a collection class. Is that an
accurate term? Can anybody elaborate on how such as class might be
used?
The other class looks more familiar to me, having all the properties
required store all entries of the table and a method called find that
does set all the properties. That class TBL.vb source looks like this:
Public Class TBL
Private m_F1Key As Integer
Private m_F2Data As String
Public Property F1Key() As Integer
Get
Return m_F1Key
End Get
Set(ByVal value As Integer)
m_F1Key = value
End Set
End Property
Since there appears to be very limited use of the ColTBL class, can
somebody clue in me in on what some uses of such a class might be?
Thank you for any help or information!
was apparently used to generated a Data and/or Business Layer of
classes for the ap.
For whatever reason, it seems to have generated two VB class per
table, one with the table name and the other with the prefix Col (as
in collection I presume).
When we look at the ColTBL.vb source for example we see something
like this:
Public Class colTBL
Inherits System.Collections.CollectionBase
#Region "List Data Structure"
Public Structure s_TBL
Private m_F1Key As Integer
Private m_F2Data As String
Public Property F1Key() As Integer
Get
Return m_UMKey
End Get
Set(ByVal Value As Integer)
m_F1Key = Value
End Set
End Property
I'm a bit perplexed, and likely some OOP learning curve thingie. But
Another developer said this class is a collection class. Is that an
accurate term? Can anybody elaborate on how such as class might be
used?
The other class looks more familiar to me, having all the properties
required store all entries of the table and a method called find that
does set all the properties. That class TBL.vb source looks like this:
Public Class TBL
Private m_F1Key As Integer
Private m_F2Data As String
Public Property F1Key() As Integer
Get
Return m_F1Key
End Get
Set(ByVal value As Integer)
m_F1Key = value
End Set
End Property
Since there appears to be very limited use of the ColTBL class, can
somebody clue in me in on what some uses of such a class might be?
Thank you for any help or information!