Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing typed data set column type
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Changing typed data set column type
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01446666
Message ID:
01446666
Views:
93
Hi,

I have created (some time ago) a typed data set of a table (the typed data set class is in a project MyDataSets). Then I changed one of the columns types in the SQL Server from nchar(1) to BIT. Now when I instantiate the variable of this typed data set in my program I check the type of the column as following:
string ColumnTypeStr = oMyDataSet.dtMyDataTable.MyFldNameColumn.DataType.ToString();
And I see that the value in ColumnTypeStr is "string".

I believe I need to change the typed dataset type to be BIT too. How do I do it? Is it a lot of work to go through the class (.cs) file where data set is defined?


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.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform