I am struggling with the unshakable designer of VS2008 DataSet, it seems. I am trying to do what seems like a simple solution for a dataset of two tables, where one table is just a text value for an integer value stored in another table. Basic data design 101.
Table1 CharField1 CharField2 IntForeignKeyField1 etc Table2 IntPrimaryKey1 ValueForKeyField
This does not affect the problem that I am facing, I do not believe it, because I do not want to do anything except read the values ββfrom the second table, so I can select them in the DataGridViewComboBoxColumn in the client - - I will never edit them on the client. But, I was distracted.
Since it lives in a web service, and I wanted a typical typed dataset to be delivered to the clients of this web service, I decided to use the DataSet Designer to create TableAdapters and all the plumbing, thinking it might be less work and easier to maintain .
So, I created nice fields and edited the selection instructions, telling the developer to create all the Insert, Update, and Delete commands for the table adapter used. He was happy telling me that everything was done as I asked.
However, when I tried to use the Update operator, I had an error saying that there was no valid Update operator! After some fruitless search for people with similar problems on the Internet, I burst into XML for a dataset. Of course, there is no Update statement and Delete statement.
I tried to completely remove and recreate the DataSet from the project with the same results. Update or delete statements were not created, even if it was reported as completed.
I ended up creating the Update XML document manually by checking out another constructed dataset from another project, so the web service now works. However, I do not believe that my changes would have lasted through editing initiated by the designer, and I am at a standstill about why it does not work. Any ideas?
Thanks for any feedback, Dave