Serialize NHibernate Entity into Xml/Json format

147 views
Skip to first unread message

MA

unread,
Nov 22, 2012, 11:23:43 PM11/22/12
to nhu...@googlegroups.com
Hi,
 
I have several NHibenrate entities in my application which I am loading using lazy load. I need to pass those entity data to other application in Xml/Json format when request comes from that other application. So I have to serialize entity into Xml/Json format. Though I can navigate through entity's each property and prepare Xml/Json output but thought it would not be a good/efficient approach so just want to know if there is any ready-to-use feature/plug-in of NHibernate which can directly provide me Xml/Json output for given NHibernate entity.
 
Thanks for your inputs.
 
Regards.
 

kor

unread,
Nov 23, 2012, 10:05:15 AM11/23/12
to nhu...@googlegroups.com
why are xml/javascriptserializer not good?
Reply all
Reply to author
Forward
0 new messages