Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating DataSet class for XML file
Message
 
 
To
13/10/2013 22:26:27
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01585409
Message ID:
01585434
Views:
34
>>I am in the process of converting WinForms project into ASP.NET Web Forms. The code of WinForms project was created by off-shore developer who stopped communicating. So I have no help there. Good thing I have the WinForms project code but too bad I don’t understand a lot.
>>
>>So the first thing I am trying to understand is what VS/.NET tool he had used to create a DataSet that is used to be populated from XML file.
>>
>>Here is the segment of the code:
>>
>>
>>//Instantiate dataset for data files list.
>> dstDataFiles = new DataFilesDataSet();
>>
>>
>>I found in the WinForms solution the file DataFilesDataSet.Designer.cs where the class DataFilesDataSet is defined. The line of code that defines the class is:
>>
>>
>>public partial class DataFilesDataSet : global::System.Data.DataSet {
>>
>>
>>The top of the DataFilesDataset.Designer.cs says that
>>
>><auto-generated>
>>//     This code was generated by a tool.
>>
>>
>>So I am trying to figure how do I create the DataFilesDataset.Designer.cs in my ASP.NET Web Forms project.
>>
>>TIA for any help.
>
>
>It's a DataSet
>
>In the winforms project double click on DataFilesDataset.xsd
>
>How to create a dataset ?
>
>Project rightclick - add - new item - Data - DataSet

Again, thank you very much! I copied the .xsd file from the WinForm to WebForms, added dataset to the WebForms projects and now can copy the code from the WinForms project. With some minor changes to the property names, I can re-use the code.
I can see now that the developer has a bunch of other tables' .xsd files (DataSet) and I can use them too. Things are looking up.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform