Can WCF Data Services or RIA Services be implemented with NHibernate?

一世执手 提交于 2019-12-07 00:55:50

问题


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?


回答1:


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.




回答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



来源:https://stackoverflow.com/questions/2681318/can-wcf-data-services-or-ria-services-be-implemented-with-nhibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!