Visual Studio: generating code upon xsd problems with integers
Can anyone tell me, why integer elements in xsd are being converted in String fields?

    <xs:element name="OwnerID" type="xs:integer"/>

into

    [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
    public string OwnerID
    {
        get
        {
            return this.ownerIDField;
        }
        set
        {
            this.ownerIDField = value;
        }
    }

my first assumption that all fields are strings attributed by real datatype was not right - dates are interpretered as dates, bools as bools  - what's wrong with integer?

Thanks in advance!
Visual Studio: generating code upon xsd problems with integers
===

Can anyone tell me, why integer elements in xsd are being converted in String fields?

    <xs:element name="OwnerID" type="xs:integer"/>

into

    [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
    public string OwnerID
    {
        get
        {
            return this.ownerIDField;
        }
        set
        {
            this.ownerIDField = value;
        }
    }

my first assumption that all fields are strings attributed by real datatype was not right - dates are interpretered as dates, bools as bools  - what's wrong with integer?

Thanks in advance!