"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OD******** ******@TK2MSFTN GP14.phx.gbl...
You give me more and more the idea that you have a only a string
"Mydata.Mystron glytypeddataset " and absolute nothing more and want to make
from that a strongly typed dataset. I assume that I am wrong?.
Yes, you misunderstand me. I'll try explaining it again. :)
I already have a strong typed dataset. It is located in the MyData-namespace
and is called Mystronglytyped dataset.
Lets say the dataset has a table SomeTable with two columns:
- ID (integer)
- Name (string)
In an empty class I write this...:
Class MyBusinessClass
Private _mydataset as MyData.Mystrong lytypeddataset
Private _mydatarow as MyData.Mystrong lytypeddataset. SomeTable
End Class
Next step is, I mark the line "Private _mydatarow as
MyData.Mystrong lytypeddataset. SomeTable" and run a macro, which examines the
strong typed dataset and generates code, so the class now looks like this:
Public Class MyBusinessClass
Private _mydataset as MyData.Mystrong lytypeddataset
Private _mydatarow as MyData.Mystrong lytypeddataset. SomeTable 'mark this
row and run the macro
Public Property ID() As Integer
Get
Return _mydatarow.ID
End Get
Set(ByVal Value As Integer)
_mydatarow.ID = Value
End Set
End Property
Public Property Name() As String
Get
Return _mydatarow.Name
End Get
Set(ByVal Value As String)
_mydatarow.Name = Value
End Set
End Property
End Class
I hope this shows, what I have in mind. :)