使用 WebForms 中的 OData
作为一些背景,我更喜欢 ASP.NET MVC 给我带来的灵活性和好处,并且自 MVC 发布以来一直在使用 MVC 进行构建。但我即将启动的新项目需要复杂的日历/调度程序控件 - 并且没有一个 jQuery 替代方案能够满足所有要求。
这让我找到了 Telerik Radtools Scheduler,它满足了所有要求,除了它的目标是 ASP.NET WebForms。
该项目的其余部分包含基本的 CRUD 功能,这非常适合通过 MVC 公开的模式。
我最近看到了很多关于 OData 的讨论,想知道这是否可以给我带来我所追求的“中间立场”。
有没有人有过利用 Webforms 中的 OData 的经验(或者即使可能,或者您想做的事情)。
我仍然希望创建一个基于 jQuery 的客户端重度用户体验,所以欢迎任何其他想法或建议。
As some background I prefer the flexibility and benefits that ASP.NET MVC gives me, and have been building in MVC since its release. But the new project I am about to start requires a complex calendar / scheduler control - and none of the jQuery alternatives meet all the requirements.
This has led me to the Telerik Radtools Scheduler, which ticks all the boxes, except its targetted at ASP.NET WebForms.
The rest of the project contains basic CRUD functionality, which is a great fit for the patterns exposed through MVC.
I have seen a lot of buzz lately about OData and was wondering if this may give me the "middle ground" I am after.
Has anyone had any experience leveraging OData from Webforms (or even if its possible, or something that you would want to do).
Am still looking to create a jQuery based client side heavy UX, so any other thoughts or suggestions are welcomed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有使用 WCF 数据服务进行 Web 表单开发,但我从事的主要项目是我列表中的下一个项目,开始为其构建一些 WCF-DS/OData 功能。
这绝对是可能的,而且我认为它为现有站点/应用程序提供了一个很好的附加组件,您可以为该站点/应用程序提供一些可查询的提要和/或一些附加的 CRUD 功能。我现在的问题是,我的 Web 表单项目不使用实体框架作为底层域模型 - 我们有一组手动滚动的实体。因此,我必须做很多(有些平凡的)工作来实现 IUpdatable 的插入/更新/删除功能。但我将快速启动并运行 IQueryable 方面,以便在从应用程序传播信息方面提供一些快速的成果。 (不妨先选择容易实现的目标,看看是否值得付出努力——我确信这是值得的,但我也想快速获胜!)
我已经围绕我的问题进行了一些演讲WCF 数据服务和 OData 区域,并在我的示例中利用了大量 jQuery。就我个人而言,我喜欢它。 WCF-DS 支持的 JSON 格式非常棒,非常适合我的 jQuery 工作。
我已经将 WCF-DS 提要与一些 jQuery UI 项目(显示和/或更新数据的模式、不同选项卡上提要的不同部分(异步检索)等)集成,并且还计划集成一些 jqGrid 示例与我的 WCF-DS 源一起使用。
如果您使用 jQuery,我绝对建议保留所有 JSON(显然),并且您确实不应该遇到任何问题。
如果您对此还有其他疑问,请告诉我。我很惊讶没有更多的答案或反馈。我认为这是一个非常好的框架,可以集成到许多不同类型的应用程序(Web 表单、jQuery、Silverlight 等)中。
希望这有帮助!祝你好运!!
I haven't used WCF Data Services for web forms development, yet - but the main project that I work on is next on my list to start building some WCF-DS/OData functionality for.
It's definitely something that's possible, and I think it provides a nice add-on to an existing site/application that you either want to provide some queryable feeds for and/or some additional CRUD functionality. My issue, right now, is that my web forms project does not use the Entity Framework as the underlying domain model - we have a hand-rolled set of entities. So I'll have to do a lot of (somewhat mundane) work implementing IUpdatable for the insert/update/delete functionality. But I'll get the IQueryable side of things up and running quickly in order to provide some quick wins in terms of disseminating information from the application. (Might as well go with the low-hanging fruit first to see if it's worth the effort -- I'm sure it will be worth it, but I'm also going for the quick win!)
I have given some talks around my region on WCF Data Services and OData and have leveraged a lot of jQuery for my examples. Personally, I love it. The JSON format that WCF-DS supports is great and fits in perfectly with my jQuery work.
I've integrated WCF-DS feeds in with some jQuery UI items (modals to display and/or update data, different parts of a feed on different tabs (retrieved asynchronously), etc.) and also am planning on integrating some jqGrid samples I have with my WCF-DS feeds.
If you go with jQuery, I would definitely recommend keeping everything JSON (obviously) and you really shouldn't have any issues.
Let me know if you have other questions about this. I'm surprised there aren't more answers or feedback. I think this is a really nice framework ot integrate into a number of different types of apps (web forms, jQuery, Silverlight, etc.).
Hope this helps! Good luck!!