Last active
September 26, 2016 07:20
-
-
Save jaydata/ba4333a62484f8f2de82440d4dce7270 to your computer and use it in GitHub Desktop.
jQuery product editor - Define Product entity
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("$data.Entity").extend("Northwind.Product", { | |
_id: { "type": "Edm.String", "nullable": false, "required": true, "key": true }, | |
Name: { "type": "Edm.String", "nullable": false, "required": true }, | |
CategoryId: { "type": "Edm.String", "nullable": false,"required": true }, | |
QuantityPerUnit: { "type": "Edm.String", "nullable": false, "required": true }, | |
UnitPrice: { "type": "Edm.Decimal", "nullable": false, "required": true }, | |
Discontinued: { "type": "Edm.Boolean", "nullable": false, "required": true } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment