How can I transfer an NHibernate PersistentGenericSet over WCF

Posted by Ian Oakes on Stack Overflow See other posts from Stack Overflow or by Ian Oakes
Published on 2010-03-31T07:16:26Z Indexed on 2010/03/31 7:23 UTC
Read the original article Hit count: 360

Filed under:
|

I'm trying to send objects retrieved by NHibernate over WCF, but whenever a have a property of ICollection I get an exception.

When NHibernate gets the data from the database this property is intitialized with an instance of PersistentGenericSet.

Is there a way I can send a PersistentGenericSet over WCF?

-or-

Is there some way making NHibernate initialize these properties with another type?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about wcf