Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding column to dataset .xsd file
Message
De
06/12/2013 12:45:41
 
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589385
Message ID:
01589476
Vues:
40
>>>>>This is a newbie question. In my project I have a dataset file (MyDataSet.xsd, MyDataSet.Designer.cs, MyDataSet.cs). I need to add a couple of columns to this dataset. I double click on MyDataSet.xsd file in the VS Solution Explorer. I see the MYDATASET image with all the columns. I can right-mouse click and add a column. But how do I specify the type of the new column? In fact, I can't even figure out how to see the type of any of the existing columns.
>>>>>TIA.
>>>>
>>>>In the designer :
>>>>Right click on the table choose Add/Column.
>>>>Enter the name
>>>>Right click on the column - Choose Properties.
>>>>Set data type etc as required
>>>>
>>>>Or you could do it the hard(er) way : Right click the xsd file in Solution Explroer , Choose Open With /XML (Text) editor and create your own there :-}
>>>
>>>I presume that when you say "table" you mean the image table in the .XSD designer pain in VS (where you see at the top the name of the DataSet and below the names of the columns. If so, I can add a column as you described; but after I add a column and right mouse click on it, the menu does not have Properties item. This is what I thought and thried the very first time.
>>>You "hard way" approach should work as I see the entire code of the dataset.
>>>Thank you!
>>
>>Properties works me (VS2012) - but it's a little bit odd - if you right-click on the column name the 'Properties option doesn't always show - you get an editing menu. Should work if you click on the area to the left of the name tho ?
>
>You are correct. If I click a little to the left of the name the Property works. Now I know how to do it easy and hard way :).
>Thank you!

Stick to the easy way - modifying the XML directly is all too easy to get wrong :-}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform