I want to create a web service that looks as follows
[WebMethod]
public AddressesEntity GetAddress (int id)
{
address = new EntityClasses.AddressesEntity();
address.FetchUsingPK(1);
return address
}
I would like the returned xml to look (roughly) like the following
<AddressEntity>
<Id type="int">int</Id>
<Name type="string" length="30">string</Name>
</AddressEntity>
Is there a way I can do this directly from the entity class without getting all of the join (and other) information. I have tried XmlFormatAspect.Compact but it still has too much 'fluff'.
Could you add another XmlFormatAspect - perhaps that just returns the datacolumns \ types \ data in the entity ?
Will my only solution be to roll my own ? I was hoping to avoid that but if I have to ....
Thanks
BOb