I'm on a project where the lead person says we need to create our simple C# classes with XSD files. From what I can tell the C# classes will be used just like a DTO (Data Transfer Objects). So they are very simple with just property names. in a few cases a class might reference another as an array. This is a simple task in Visual Studio just creating with the class library template. But seems like a lot of work to make an XSD file to create the classes instead. Here is an example of a c# class being created with an XSD File:
public Class Product
{
string ProductName {get;set}
int InventoryCode {get;set;}
string Manufacturer {get;set;}
}
These classes are being created for a .asmx web service project. The client applications are other c# asp.net applications.
When do you need to make classes using XSD instead of the Visual Studio class library template approach?