阅读背景:

如何序列化一个nhibernate -电子邮件对象的所有属性?

来源:互联网 

I have some web methods that return my objects back as serialized XML. It is only serializing the NHibernate-mapped properties of the object... anyone have some insight? It seems to be that the web methods are actually serializing the NHibernate proxies instead of my classes. I've tried using [XMLInclude] and [XMLElement], but the properties are still not serializing. I have a really horrible hackish way of getting around this, but I wondered if there was a better way!I have some web methods that return my objects




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: