I search a way to simulate a database and link between table.
sample:
Table A
colA
And
Table B
colB
colD
linked by
Table C
colA
colB
and
Table D
colD
That made TableA linked to TableB by TableC.
And tableD linked to tableB.
what I think to do its a kind of linkedlist.
a little like :
Class Table
Private cols As List(Of Column)
End Class
Public Delegate Sub TableDelegate(ByVal tbl As Table)
Class Column
Private name As String 'use for column name like colA,colB....
Private fk As List(Of TableDelegate) 'linked foreign key
End Class
I never work with delegate, I usely do this in pointer, but I’m stuck in vb.
So its a beginning, if you have idea where to go or a complete other way to do it?
tank you
1 Answer