jaydata

Missing inverse property in asp.net webapi odata $metadata

一笑奈何 提交于 2019-12-10 10:15:10
问题 have very simple relationship between two entities and I am trying to expose them with asp.net webapi odata controllers but it seems that something is wrong with $metadata. When I run jaydatasvcutil.exe on the $metadata I get warning: inverseProperty other side missing. When I use breezejs loadNavigationProperty I get similar error. I have the problem even with official example. http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations You can observe

How do I get the Last Insert Id from a JayData transaction?

烈酒焚心 提交于 2019-12-06 17:42:29
Using JayData to insert a new object (record) into a Sqlite database, how do I query for the last insert id? I can do it like this but it seems inelegant: DB.Members.orderByDescending('member.Id').take(1).toArray(function(member){ alert(member.Name); }); If you have defined the Member class with auto-incremented Id, there is no additional query you have to write, because the Id property is filled automatically after the saveChanges() . To define a auto-incremented Id to your class, check if you have written this: $data.Entity.extend("Member", { Id: { type: "int", key: true, computed: true }, .

OData Jaydata - odata update request returns error 404 (SAPUI5, node)

拥有回忆 提交于 2019-12-06 06:42:40
I'm building a web application with SAPUI5 which makes available a list of services, that are stored in a MongoDB and available as OData. I followed this guide jaydata-install-your-own-odata-server-with-nodejs-and-mongodb and these are my model.js: $data.Class.define("marketplace.Service", $data.Entity, null, { Id: {type: "id", key: true, computed: true, nullable: false}, Name: {type: "string", nullable: false, maxLength: 50}, }, null); $data.Class.defineEx("marketplace.Context", [$data.EntityContext, $data.ServiceBase], null, { Services: {type: $data.EntitySet, elementType: marketplace

Missing inverse property in asp.net webapi odata $metadata

北战南征 提交于 2019-12-06 00:33:21
have very simple relationship between two entities and I am trying to expose them with asp.net webapi odata controllers but it seems that something is wrong with $metadata. When I run jaydatasvcutil.exe on the $metadata I get warning: inverseProperty other side missing. When I use breezejs loadNavigationProperty I get similar error. I have the problem even with official example. http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations You can observe the $metadata here http://sdrv.ms/Z5Klfw Please help. When we are generating navigation properties we

Developing a HTML5 offline storage solution for iOS/Android in 2011

独自空忆成欢 提交于 2019-12-02 13:55:39
The problem: I need a device agnostic (e.g. HTML5) solution for storing and querying 250,000+ rows of data offline on a phone or tablet type device (e.g. iOS/Android). The idea being I have people working in remote areas without any cellular data connection and they need to run queries on this data and edit it while offline. Partly it will be geo-location based so if there are assets in the area they are in (uses GPS) then it will show those assets and let them be edited. When they return to the office they can sync the data back to the office server. The reason that I'm approaching this from

Breeze.js typed entities

懵懂的女人 提交于 2019-12-01 19:22:43
问题 Is there a way to create typed entities using Breeze in the same way that JaySvcUtil works for JayData? Does this include Typescript support - also is there general Typescript support within the Breeze framework? 回答1: We do have plans to do more with TypeScript, but haven't yet committed to a specific time frame. (Boris's work, mentioned in John's post, is certainly a great start). UPDATE: As of v 0.84.4, Breeze provides full TypeScript support. As far as automatically generating design time

Breeze.js typed entities

断了今生、忘了曾经 提交于 2019-12-01 19:20:13
Is there a way to create typed entities using Breeze in the same way that JaySvcUtil works for JayData? Does this include Typescript support - also is there general Typescript support within the Breeze framework? Jay Traband We do have plans to do more with TypeScript, but haven't yet committed to a specific time frame. (Boris's work, mentioned in John's post, is certainly a great start). UPDATE: As of v 0.84.4, Breeze provides full TypeScript support. As far as automatically generating design time Javascript classes for each entity; we have had several internal discussions on this, but are

OData service using NodeJS and JayData

戏子无情 提交于 2019-12-01 08:50:24
问题 I am trying to follow this example: http://jaydata.org/blog/install-your-own-odata-server-with-nodejs-and-mongodb but it seems to be out of date, so as written in the example's comment i have update some line of code as follow : data-model (data-model.js file) : $data.Class.define ( "dbTest.tblTest", $data.Entity, null, { ID: { type: "id", key: true, computed: true, nullable: false }, Data: { type: "string" } }, null ); $data.Class.defineEx ( "dbTest.Context", [ $data.EntityContext, $data

How to consume OData service with Html/Javascript?

谁都会走 提交于 2019-11-29 22:25:16
Our project currently uses Silverlight to consume an Odata service. This has made life pretty simple since we can just reference the OData service thus giving us generated service reference/entities. However there is some discussion on whether we should move to Html (html5). I'd like to know what to expect if we make this change. We'd be leveraging a framework like jQuery of course. My main concern is how to consume the same OData service via JavaScript/jQuery. How are we suppose to deserialize/serialize entities returned from this OData service? Is our data contract supposed to be hard-coded