Questions tagged [upshot]

Client-side JavaScript library to work with remote data exposed over HTTP Web APIs

Built to be integrated with Knockout.js and to provide extensive cross-browser support, Upshot.js is a lightweight but powerful client-side library to work with Web APIs, providing data sources so entities can be queried, updated, deleted and created over those APIs transparently and with minimal effort.

55 questions
2
votes
0 answers

SinglePageApplication 404-Error

I am trying to programm a SPA using Upshot.js when i came to a problem. upshot.metadata(@(Html.Metadata<...>())); Error: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Metadata' I solved this by adding the following line:
spitzbuaamy
  • 751
  • 2
  • 10
  • 25
2
votes
2 answers

Upshot helper extension using Linq To Sql

This is my first question on SO, so please bear with any mistakes/irregularities. I wanted to implement SPA for my new project, Hence I reached Steve Sandersion's after some googling blog. Looking at the code hosted on github, I noticed that I had…
dicemaster
  • 1,203
  • 10
  • 22
2
votes
1 answer

Adding Upshot to my MVC 4 project, problems with System.Web.Http.Common

I was trying to add upshot to my mvc 4 project. My problem is that i am needed to add System.Json and System.Web.Http.Common to get @(Html.UpshotContext(bufferChanges:…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
2
votes
0 answers

How to correctly implement upshot's deleteEntity function on a child record

I have a Parent Child table structure. I am trying to delete a child record. Here is my Simplified View Model. MyNameSpace.ParentViewModel = function () { var self = this; self.dataSource = upshot.dataSources.GetRecords.refresh(); …
Colin
  • 51
  • 4
2
votes
1 answer

Upshot mapping problems asp.net mvc4

I'm working on a Single Page Application in ASP.NET MVC 4 beta, which fails (I guess) at the moment upshots tries to map the JSON returned by my controller. My project works with an essay which requires some personal information, some open questions…
2
votes
1 answer

Questions about Architectural Best Practices using Knockout, Upshot, and Entity Framework 4.3

The Question What are the best practices for architecting an application using Knockout 2.0.1, Upshot.js, and Entity Framework 4.3? Technology Stack Our technology stack currently looks something like: • SQL Server 2008 R2 • ASP.NET MVC3 (using…
Anthony Gatlin
  • 4,407
  • 5
  • 37
  • 53
2
votes
0 answers

UpshotContext handle post

Can't find any documentation for DataController and UpshotContext combination. I see Upshot calls "Submit" method on DataController (inherite from base) and than using naming convention Insert, Delete or Update method is called. How to explicitly…
Andrej Kaurin
  • 11,592
  • 13
  • 46
  • 54
2
votes
2 answers

Concerns about ASP.NET SPA(Single Page Application)

Here is my knowing about ASP.NET SPA: have to use Upshot to talk to the server; have to use DbDataController to provide Web APIs; have to use Entity Framework Code first... so, many concerns come out: have to provide metadata for the upshot to…
2
votes
0 answers

Some basic upshot questions

I am new to MVC, SPA and all that. I follow this video: http://channel9.msdn.com/Events/TechDays/TechDays-2012-Belgium/199 and I got stuck in the moment when it deals with upshot. @{Html.UpshotContext().DataSource(x =>…
Oldrich Svec
  • 4,191
  • 2
  • 28
  • 54
2
votes
1 answer

JayData vs Upshot (crossplatform HTML5 app)

I'm just in the planning phase of developing my iPhone/iPad/Android app. Basically the app will query data from remote data sources and store it locally. As data management will be the key feature of this app, so the UI isn't an important factory in…
user1252287
2
votes
2 answers

How to use JSON.NET with ASP.NET MVC 4 Beta

Swapping out the standard serializer for the JSON.NET serializer is a non-issue. Code below was taken directly out of Scott Hanselman's…
Ryan Pedersen
  • 3,177
  • 27
  • 39
1
vote
1 answer

How to upload related entities via MVC4 upshot

I get a simple DTO entity A loaded into my upshot viewmodel which is happily viewable via Knockoutjs. My DTO A contains a List entities. So I can foreach over the elements inside A. again: class A { someprop; List childB; …
Obiwan007
  • 646
  • 1
  • 8
  • 20
1
vote
2 answers

Upshot.js Remote Data Source Example

I'm working my way through the MVC 4 Beta along with the SPA options. I get the idea of adding service endpoints to the project and then using Upshot to connect to them. However, the application I want to build will communicate with an external…
Brent Pabst
  • 1,156
  • 1
  • 15
  • 37
1
vote
2 answers

spa upshot how to access grandparent entity?

I'm trying to get an SPA working with the following basic models: public class Owner { public int OwnerId { get; set; } [Required] public string Name { get; set; } public virtual ICollection TodoItems { get; set;…
nugget
  • 155
  • 1
  • 1
  • 16
1
vote
1 answer

DbDataController in MVC4 UpdateEntity failing

I have a datamodel like ModelA which contains a Collection. ModelB contains a Collection as a backreference. That is failing because of cyclic references if I query with Include("ModelB"). Not good but I solved that via setting ModelB.List=null for…
Obiwan007
  • 646
  • 1
  • 8
  • 20