Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a utility to create VB.NET classes from an XSD file?

Is there a utility out there that will create VB.NET classes from a Dataset.xsd file? And I don't mean like the XSD.exe utility does - all that does is convert the XML of an XSD file into classes in a .vb - it doesn't append any "extended" functionality.

I'm basically looking for something that will generate the beginnings of a business layer from the XSD file. Like creating a partial class for each datatable, then create a property for each of the datatable's columns as the right datatype and finally the basically CRUD methods as well.

This is something I have to do manually over and over again for each project. (I do lots of little projects and use VistaDB so I can't use Linq-To-SQL - wish I could)

like image 950
RichC Avatar asked Nov 27 '25 22:11

RichC


1 Answers

I think that xsd.exe will do what you need it to. Here's and example to convert purchaseorder.xsd to a vb class in the Purchasing namespace:

xsd.exe -c -l:vb -n:Purchasing purchaseorder.xsd

Type xsd.exe /? from a visual studio command prompt to get all of the options.

You can find more info here.

like image 168
Paul G Avatar answered Nov 30 '25 23:11

Paul G