开发者

DTO object design

开发者 https://www.devze.com 2023-02-12 09:42 出处:网络
I have customer object contains his contact information,transaction details,address details. Here how to design my DTO object to hold all the information.I am getting output as xml file.Here i want t

I have customer object contains his contact information,transaction details,address details.

Here how to design my DTO object to hold all the information.I am getting output as xml file.Here i want to map xml to dto object automatically.

开发者_开发知识库

Please give me any suggestions.

Regards, Chaitu


I don’t have enough details to give you a proper answer but I’ll try to give it a go. For what I have understood you need to map the customers details (XML based) to a kind of DTO object. I think a good solution could be deserialize the customer XML to the DTO object you need to create. Have a look at

http://savagelook.com/blog/portfolio/quick-tip-deserializing-xml-to-objects-in-c

http://www.codingday.com/xml-c-class-generator-for-c-using-xsd-for-deserialization/

0

精彩评论

暂无评论...
验证码 换一张
取 消