WCF 数据服务或 RIA 服务可以用 NHibernate 实现吗?
从我在互联网上读到的内容来看,WCF数据服务似乎与数据访问绑定在一起通过服务器上的实体框架。
有没有办法以相同的方式映射 NHibernate 访问权限?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WCF RIA 服务当然可以与 NHibernate 一起使用,我相信 WCF 数据服务也可以。这两个框架都构建在
IQueryable
< /a> 可以通过 LINQ to 提供NHibernate请参阅此帖子,来自 Brad Abrams,他在其中将 RIA 服务与 NHibernate 结合使用。
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 NHibernateSee this post from Brad Abrams, where he uses RIA Services with NHibernate.
WCF 数据服务和 NHibernate 有一些您应该注意的限制。除了 IQueryable 之外,图片还有更多内容,请自行查看:
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/fcdaca20-73ea-4abb-b70b-981fe2728351
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