JayData.org

How JayData works

Author: Hajnalka Battancs February 11th, 2013


JayData is a cross-platform, cross-provider, cross-layer Javascript data access library designed to streamline your data operations in mobile applications, web applications and in nodeJS serverside code.

And this is how you can get it to work:

First, include the jaydata.js library file.

Or…

Then, define a data model. If you plan to consume an OData service, use the jaysvcutil.exe tool to auto-generate the model definition.

Now that the model is defined, instantiate the context (ie. set up the connection or the local database):

And run queries…

Delete entities…

Create new ones…

Or update existing ones…

Find more apps with source code on JayData example page and follow JayData blog to get the latest behind the scenes scoop from the JayData HQ and improve your skills with our tutorials!