This technical article features a video showing how to create a .NET OO c# DataSet object based on a Db2 for i Table (or DDS Physical File or external data structure). The end result is equivalent to what IBM i developers do when they want to create an external DS object based on a record format for use in their programming.
The DataSet object type that comes with the .NET Framework is sort of like a multi-occurence external data structure on steroids, as it contains methods (routines) that can be used to populate and manipulate the data contained inside the DataSet at run time. The main thing you can't accomplish with the .NET DataSet however, is that you can't overlay namespaces.
This TechCrystal Article contains a link enabling you to stream a How-To video directly from our site (with no obligation or preference-style cookies for that matter). There is also a c# code example PDF showing use of database column names in compiled code, which IBM i languages enable by definition, but is something that is not available (at compile time) for SQL-accessed database column names in c# or VB.NET (probably because these languages promote a style of programming with a more strict separation of the data layer and typically focus on SQL style connectivity to multiple vendors (each of whom develop their own adapter). There is also available for download, with website registration, Ch 8 Drag and Drop PF DS to OO DataSet from the Pro Into Module of our Get Running - Tegratecs Code Package™.
|