Skip to content

Commit 6d37346

Browse files
Merge pull request #526 from isc-kiyer/fix-480
Add snippets from Projection and XData
2 parents a784cb3 + b4d011f commit 6d37346

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

snippets/objectscript-class.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@
2323
"prefix": "Property",
2424
"body": "Property $1 As ${2:%String};"
2525
},
26+
"Projection": {
27+
"prefix": "Projection",
28+
"body": "Projection $1 As $2;"
29+
},
2630
"Unique Property": {
2731
"prefix": ["Unique", "Property"],
2832
"body": ["Property $1 As ${2:%String};", "", "Index $1Index On $1 [Unique];"]
2933
},
3034
"Always-Computed Property": {
3135
"prefix": ["Computed", "Property"],
3236
"body" : ["Property $1 As ${2:%String} [Calculated, SqlComputed, SqlComputeCode =", "{set {$1} = {$3}}];"]
33-
},
37+
},
3438
"Date/Time Property": {
3539
"prefix": ["Date", "Time", "Property"],
3640
"body" : ["Property $1 as ${2|%Date,%Time|}(MINVAL = $3, MAXVAL = $4);"]
@@ -73,6 +77,16 @@
7377
"body": "Relationship $1 As ${2:classname} [ Cardinality = ${3|one,many,parent,children|}, Inverse = ${4:correspondingProperty} ];",
7478
"description": "Relationship"
7579
},
80+
"XData": {
81+
"prefix": "XData",
82+
"body": [
83+
"XData $1",
84+
"{",
85+
"$0",
86+
"}"
87+
],
88+
"description": "XData"
89+
},
7690
"BusinessService": {
7791
"prefix": ["BusinessService","Interoperability","ClassService"],
7892
"body": ["Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService",

0 commit comments

Comments
 (0)