I've been trying to generate enumerations with specific integer values using
an XSD and xsd.exe.
e.g
public enum AccessSecurity
{
Normal = 1,
Restricted = 100001
}
The values held in the enumeration map to fixed values in one of corporate
systems we're integrating and it would be nice to not have to perform a
mapping operation when we generate sql.
I've tried using simple type enumerations and then complex types with
xs:choice and setting a default value, but I can't get the xsd.exe to emit
what I want.
Any ideas where I going wrong, or is it just not possible?
Thanks
Glenn