Created
September 26, 2016 07:03
-
-
Save jaydata/65b4c6078c366c73b9217ff715c17803 to your computer and use it in GitHub Desktop.
jQuery product editor - Define data context and its entity sets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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