We use NHibernate with WCF Data Services I have quite a lot of experience 
on it. However we ended up writing a provider from scratch. It's not so 
hard. I also recommend using Web API 2 over WCF Data Services. It also 
works fine with nhibernate except, it can't expand one to many. But I have 
a workaround for that

On Wednesday, November 27, 2013 10:53:08 AM UTC+2, Gunnar Liljas wrote:
>
> I will spend some time this weekend having a look at these bugs.
>
>
> 2013/11/26 juanita <[email protected] <javascript:>>
>
>> *(Somehow my previous post never showed up here, so I am posting again)*
>>
>> We are using NHibernate as the persitence layer in a fairly large 
>> project. Among other things, the software exposes data through a WCF Data 
>> Service interface. We originally had quite some issues getting NHibernate 
>> and WCF Data Services 4 (as included with .NET) working together, but 
>> finally succeeded after implementing a number of work-arounds on our end.
>>
>> We would like to update to WCF Data Services 5.x (currently 5.4) and have 
>> tried to do so, but found that this breaks the services. The root cause 
>> revolves around IExpandProvider being deprecated since 5.x and expands now 
>> being handled somehow differently. While some requests with expand work, 
>> others don't, specifically requests with expands over multiple levels 
>> involving collections.
>> Other people have apparently found similar issues and created NH-3450, 
>> NH-3423, NH-3417, NH-3395 and NH-3392, all revolving around this topic. All 
>> of these are open since Feb-Apr 2013 and have not yet been fixed, nor 
>> scheduled for a version.
>> We were very pleased to find some other WCF Data Service / OData issues 
>> have been addressed, so some of our old work-arounds became obsolete.
>>
>> I quite honestly have little hope that we will be able to implement 
>> work-arounds for the remaining issues. Neither can we give up support for 
>> these kinds of expands or work-around these on the client side. 
>>
>> Is there any chance these issues might be addresses any time soon? Is 
>> there anything we can do to increase priority of these (other than vote in 
>> jira, which I already did)?
>>
>> I have been using and propagating NHibernate in many projects and would 
>> hate to give up. On the other hand, it gets increasingly difficult to argue 
>> against moving to EntityFramework instead (not claiming that everything 
>> would work flawlessly there...). 
>>
>> Any help or advice is highly appreciated.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "nhusers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to