generate c# classes with CustomAttributes using XSD.exe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ps81
    New Member
    • Mar 2008
    • 2

    generate c# classes with CustomAttributes using XSD.exe

    I am trying to generate classes from XSD which looks like this

    namespace WindowsFormsApp lication1.Somet hing.Some
    {
    public class Address
    {

    public Address()
    {
    }

    [FormMapper("Tex tBox2")]

    public string StreetAddress { get; set; }
    [FormMapper("Tex tBox3")]
    public string UnitNumber { get; set; }
    [FormMapper("Tex tBox4")]
    public string City { get; set; }
    [FormMapper("Tex tBox5")]
    public string State { get; set; }
    [FormMapper("Tex tBox6")]
    public string zip { get; set; }

    }
    }

    How do i represent the FormMapper Attribute in the xsd.


    TIA
Working...