Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing typed data set column type
Message
 
 
To
31/01/2010 13:56:02
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01446666
Message ID:
01446736
Views:
18
I see. The way I create typed data set is by using a method from KG book where - in a project used only during design phase - a typed data set is created and then saved to an XML file. Then this XML file is added as an existing item to the project. Since the process of creating the XML file is automated, recreating the typed data set in my data set project is easy.

As to your comment "unnecessary" stuff. Why did MS not improve their design when moving from .NET 1.1 to 2.0? I would hope that they keep improving their product. It is a rhetorical question.

>It's not so much changes to the designer-generated class that I object to, it's that the .xsd *itself* gets changed to include a lot of unnecessary (IMHO) stuff. That's what sucks.
>
>~~Bonnie
>
>
>>>>UPDATE: I have learned that I can just open the data set in designer and change the type of the column to Boolean. So this should do the job.
>>>
>>>That'll work as long as you open the DataSet with the XML view, not the designer view (with the little boxes that represent the tables). If you open in the designer view, make a change, then save, a whole bunch of extra junk gets put in your .xsd ... really clutters it up. If it's already cluttered up with that extra junk, then I guess it doesn't matter. But, I prefer clean, un-cluttered .xsd's, so I always make changes to the XML itself.
>>>
>>
>>I actually used the designer when changing the type. I have not looked inside the DataSet class to see what type of "clutter" is added in this case (not that I would recognize it). So what I will do is delete this typed data set class and recreated it again from an XSD file.
>>
>>Thank you for your suggestion.
"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