Question on DataSet instances
Hi there. I have what I suspect is a very silly "technical" question, please be patient as I am a little bit lost here:
In chapter 2, project "Windows Data Binding" (pages 56 - 60) what exactly is the difference in functionality between "Chapter2DatabaseDataSet" data set and its instance "chapter2DatabaseDataSet"? I mean, being "chapter2DatabaseDataSet" an instance (or a reference, a private member of Form1.cs class) of "Chapter2DatabaseDataSet" why do they seem to work as separate objects with different functionality? (Data is bound to the application controls through "chapter2DatabaseDataSet" however "Chapter2DatabaseDataSet" is used at the end of the code to create an instance of the "PersonRow" class).
Why do I have access to different objects in both the data set and its instance? For example I can't access any property in "Chapter2DatabaseDataSet" data set, only methods (as "GetDataSchema") or classes (for example "PersonRow"), while in "chapter2DatabaseDataSet" I have access to properties as "Person" or "FavoritePlace" tables and methods like "GetChanges"...
This is a bit confusing to me but I know it is because of my lack of expertise, so I would *really* appreciate any hints on this subject... thank you in advance...
Great book by the way I got it last thrusday and have spent most of my free time since reading and re-reading the first two chapters.
Regards from Costa Rica,
Victor.
|