在 WCF 数据服务中执行此操作的首选方法是什么
我了解到WCF数据服务是基于OData模型(当然是REST)。使用实体操作(如 CRUD)似乎很棒。
想象一下,我正在开发一个 ASP.NET Web 应用程序,并且在文本框中的选项卡上,我想验证某些内容(例如电子邮件的唯一性)。这些都是在任何开发中都很常见的事情(不仅仅是总是与实体一起工作)。
如何使用 WCF 数据服务实现此类操作?我是否需要与运营部门合作而不是与资源部门(例如实体)合作?
I understood that WCF Data Services is based on OData model (of course, REST). It seems like it is great to work with Entity manipulations (like CRUD).
Imagine that I am developing an ASP.NET web app, and on tab out of a textbox, I would like to validate something (say for uniqueness of email). And these are the kinds of things which will be quite common in any development (not just working with Entities always).
How can I achieve such types of operations using WCF Data Services? Do I need to work with Operations instead of working with Resources (say Entities)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须为此资源添加自己的拦截器。您可以在 MSDN 上找到一些帮助
You have to add your own interceptor for this resource. You can find some help on MSDN