DataContract and C# naming standards

Sep 12, 2010 at 10:07 AM

There are times, when most of the service providers already provides an xsd file like facebook.

sample from the facebook.xsd

<xsd:complexType name="comments_info"> 
   <xsd:element name="app_id" type="xsd:long" />
   <xsd:element name="xid" type="xid" />
   <xsd:element name="updated_time" type="time" />
   <xsd:element name="count" type="xsd:int" />

the problem is when xsd2code generates the class name it generates as follows

public partial class comments_info {
    public long app_id {get;set;}

is it possible to rather generate it in C# naming standards and use DataContract and DataMember attributes.

public partial class CommentsInfo{
   public log AppID {get;set;}