What generates DataSet.designer.vb files

1.6k Views Asked by At

I have continually run into problems trying to repair code from another developer, and one method I opted to go with was manually changing the generated dataset.designer.vb file to include overloaded database CRUD methods... After some searching, and poking around the code files, I still cannot figure out what source is being used to generate those files... I understand its the MSDataSetTool that is actually generating it, however, rather than disable it and have to manually refactor EVERY method in the dataset, I'd rather leave it on, and just change whatever source file its getting its design from...

Where does the MSDataSetGenerator look to decide how to generate/regenerate the designer.vb files?This is the info message box i get once it has regenerated the file

1

There are 1 best solutions below

6
On
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.42000
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Right. You don't want to touch that.

But you should have an xsd file which contains the data model. Adding a new DataSet to my solution, all the files are automatically generated.

enter image description here

But you wouldn't want to edit even the xsd file manually. There is a graphical interface which allows you to manage tables.

enter image description here

Just double-click the xsd file in the solution explorer to bring it up and manage the data set.