问题登记。在WCF中创建数据服务层
我对 WCF 不太熟悉,我需要创建一组只能对数据库执行 CRUD 操作的服务。我可以为此使用 WCF 数据服务吗?对此还有其他更好的解决方案吗?
I'm not much familiar with WCF, I've a requirement to create a set of services that can do only CRUD operations with database. Can I use WCF Data Services for this? Is there any other better solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WCF 数据服务无疑是 CRUD 操作的最佳选择之一。您只需要公开数据库表并允许所有操作并公开 Web 方法。一些示例可以在这里找到:
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/restcrudoperation07182009063903AM/restcrudoperation.aspx
http://msdn.microsoft.com/en-us/gg465173
希望这有帮助。
WCF Data Services are surely one of the best options you can have for your CRUD operations. You just need to expose your database tables with allowing all operations and expose webmethods. Some examplescan be found here:
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/restcrudoperation07182009063903AM/restcrudoperation.aspx
http://msdn.microsoft.com/en-us/gg465173
Hope this helps.