Skip to content

Instantly share code, notes, and snippets.

@jaydata
Created September 26, 2016 07:03
Show Gist options
  • Save jaydata/65b4c6078c366c73b9217ff715c17803 to your computer and use it in GitHub Desktop.
Save jaydata/65b4c6078c366c73b9217ff715c17803 to your computer and use it in GitHub Desktop.
jQuery product editor - Define data context and its entity sets
$data.EntityContext.extend('NorthwindContext', {
'Products': { type: $data.EntitySet, elementType: NorthwindModel.Product },
'Categories': { type: $data.EntitySet, elementType: NorthwindModel.Category }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment