I maintain an old winforms application, which was at some point before my time decompiled after the source code was lost.
I've been able to work around most changes and additions by copying existing code and modifying it to suit.
But with the problem I'm currently stuck on (related to setting up functions to interact with a new table), every solution I can find refers to the dataset designer. The project does not contain any (.xsd)
design files as referred to in so many 'answers' I've seen.
The only questions I can find related to missing designer files seem to be accidental deletions and are usually either unresolved or resolved by retrieving it from source control.
The project does have:
"MasterDataSet.cs"
and a bunch of "sometableTableAdapter.cs"
Which is generated code, (apart from modifications made to work around the lack of a designer) which should in theory have designer files associated with them, if I understand correctly?
So, my question, I suppose goes like this:
Is there any way to generate new .xsd designer files tied to these generated files using the existing code?
I've attempted to make a new dataset but it always fails with
"An Error occurred while creating the new data source: could not get type information for datasetname"
And I'm not even sure if this is the correct approach...
This does create a new set of files
Datasetname.xsd
Datasetname.Designer.cs
Datasetname.xsc
Datasetname.xss
But the latter two contain no code. Since I have no existing files of this type, I do not know what they are supposed to contain, if anything!