views:

514

answers:

2

From what I read on the internets, WCF Data Services seem to be bound to data access via Entity Framework on the server.

Is there a way to have NHibernate access mapped in the same way?

+6  A: 

WCF RIA Services can certainly be used with NHibernate, and I believe WCF Data Services can too. Both frameworks build on top of IQueryable<T> which can be provided by LINQ to NHibernate

See this post from Brad Abrams, where he uses RIA Services with NHibernate.

Samuel Jack
Also, check out this sample http://code.msdn.microsoft.com/RiaServices/Release/ProjectReleases.aspx?ReleaseId=4316
Lucas B
+1  A: 

WCF Data Services and NHibernate have limitations you should be aware of. There is a bit more to the picture besides just IQueryable, have a look for your self:

http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/fcdaca20-73ea-4abb-b70b-981fe2728351

RyBolt