Skip to content

Commit 92c0b62

Browse files
author
Keshav Iyer
committed
Add snippets for Projection and XData
1 parent a11a8b0 commit 92c0b62

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

snippets/objectscript-class.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
"prefix": "Property",
2020
"body": "Property $1 As ${2:%String};"
2121
},
22+
"Projection": {
23+
"prefix": "Projection",
24+
"body": "Projection $1 As $2;"
25+
},
2226
"Unique Property": {
2327
"prefix": ["Unique", "Property"],
2428
"body": ["Property $1 As ${2:%String};", "", "Index $1Index On $1 [Unique];"]
2529
},
2630
"Always-Computed Property": {
2731
"prefix": ["Computed", "Property"],
2832
"body" : ["Property $1 As ${2:%String} [Calculated, SqlComputed, SqlComputeCode =", "{set {$1} = {$3}}];"]
29-
},
33+
},
3034
"Date/Time Property": {
3135
"prefix": ["Date", "Time", "Property"],
3236
"body" : ["Property $1 as ${2|%Date,%Time|}(MINVAL = $3, MAXVAL = $4);"]
@@ -69,6 +73,15 @@
6973
"body": "Relationship $1 As ${2:classname} [ Cardinality = ${3|one,many,parent,children|}, Inverse = ${4:correspondingProperty} ];",
7074
"description": "Relationship"
7175
},
76+
"XData": {
77+
"prefix": "XData",
78+
"body": [
79+
"XData $1",
80+
"{",
81+
"}"
82+
],
83+
"description": "XData"
84+
},
7285
"BusinessService": {
7386
"prefix": ["BusinessService","Interoperability","ClassService"],
7487
"body": ["Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService",

0 commit comments

Comments
 (0)