Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing typed data set column type
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Changing typed data set column type
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01446666
Message ID:
01446666
Vues:
94
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform