English 中文(简体)
Upshot/Knockout 建筑最佳做法 -- -- 在Upshot与.NET之间的通信中,首选的提供者是哪一种?
原标题:Upshot/Knockout Architectural Best Practices - What is the preferred provider to use in communicating between Upshot and .NET?

对于目前的一个项目,我正试图了解如何有效利用倒数2.1.0、上图1.0.0.2、ASP.NET MVC4和实体框架4.3。 有许多基本建筑问题似乎没有现成的答案。 我列举我的若干问题(分别列出),希望当我们试图在现实应用中实施这种组合时,有人能够为我和其他人提供合理的指导。

在2月份荷兰技术日(TechDays)关于击倒和Upshot的“强力”Steve Sandersonssonss 。)

不幸的是,他没有时间详细说明这些来文机制是什么或建议采用何种机制,在什么情况下建议采用何种机制。

According to Denver Developer in his blog post titled “Digging into Upshot.js” (http://denverdeveloper.wordpress.com/2012/03/07/digging-into-upshot-js/), there are three data providers exposed by Upshot.js. These are:

• 默认值为“强”DataProvider ()

• 下一个是“强度”DataProvider ()

• 最后,我们还有“强”数据DataProvider ()

在选择供典型使用的供应商方面,自然会出现一些密切相关的问题。

  • Which data provider is better—the default data provider or the RIA data provider?
  • Which one is recommended for normal use and under what circumstances?
  • What are the performance implications of using the normal DataProvider vs the riaDataProvider?

在相关方面,互联网上似乎几乎没有关于结果的文件。 除了翻过4700+代码线外, Js, 是否有其他合适的文献来源来证明这个图书馆?

到目前为止,我所研究的资源包括如下(加上更多的)。

最佳回答

您应避免使用上射并使用 < a href=> "http://www.breezejs.com/" rel=" noreferrer" >http://www.breezejs.com/

ASP.Net MVC Roadmap (note that upshot is not being developed further): http://aspnetwebstack.codeplex.com/wikipage?title=Roadmap

keep an eye on the road map plus john Papa s blog (http://www.johnpapa.net/building-single-page-apps-with-knockout-jquery-and-web-api-ndash-the-story-begins) - that should keep you on the right path

update : i just started playing around with hot towel - it roles Breeze, Durandal.js Knockout.js and Twitter Bootstrap (among others) into a very nice template ...its looking pretty cool so far

https://github.com/johnpapa/HotTowel" rel=“noreferrer'>https://github.com/johnpapa/HotTowel

问题回答

要使用哪个服务提供商取决于您的服务器端数据服务类型。 在我的做法中,它们是:

  1. WCF RIA service + upshot (with riaDataProvider) + knockout.
  2. ASP.NET WEB API + upshot (with dataProvider) + knockout. (both will do good job for you!)
  3. WCF data Service + upshot (with oDataProvider) + knockout. (read data only now)
    For oData server side service, "JayData" is a good option




相关问题
WebForms and ASP.NET MVC co-existence

I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...

Post back complex object from client side

I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...

Create an incremental placeholder in NHaml

What I want to reach is a way to add a script and style placeholder in my master. They will include my initial site.css and jquery.js files. Each haml page or partial can then add their own required ...

asp.net mvc automapper parsing

let s say we have something like this public class Person { public string Name {get; set;} public Country Country {get; set;} } public class PersonViewModel { public Person Person {get; ...

structureMap mocks stub help

I have an BLL that does validation on user input then inserts a parent(PorEO) and then inserts children(PorBoxEO). So there are two calls to the same InsertJCDC. One like this=>InsertJCDC(fakePor)...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

热门标签