7

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?

devio
  • 36,858
  • 7
  • 80
  • 143

2 Answers2

7

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
  • 32,712
  • 16
  • 118
  • 155
  • 2
    Also, check out this sample http://code.msdn.microsoft.com/RiaServices/Release/ProjectReleases.aspx?ReleaseId=4316 – Lucas B Oct 01 '10 at 17:00
2

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
  • 1,764
  • 3
  • 22
  • 34