views:

104

answers:

1

Hi everyone :D

I've just started a new project which requires a WCF service to handle a distributed environment. I'm still trying to find the best way to implement things.

I want to use NHibernate, but I've seen a few different ways to address the serialization. Is this handled in 3.0? I noticed wcf_context inside the truck :D

If it isn't handled could someone point me in the right direction?

Thanks everyone

A: 

You can't pass Lazy loaded object using WCF.

there are some ways around it, but there is a bug which will be fixed in the next WCF version (coming soon, apr 2010)

Other than that, they leave happily together, as long as you define the objects with the rigth DataContract.

There is also an issue in serialization of Lists - You need to generate the proxy using svcutil with a certain flag or bad things happens (the lists becomes arrays and you can't add more items) (unless you use a certain kind of list that both WCF and NHibernate agrees) - look that up (Nhiberate and WCF Lists) -

Dani