-
Notifications
You must be signed in to change notification settings - Fork 0
/
ncolfk.snippet
45 lines (45 loc) · 1.19 KB
/
ncolfk.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>ncolfk</Title>
<Shortcut>ncolfk</Shortcut>
<Description></Description>
<Author></Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>colname</ID>
<ToolTip>Property type</ToolTip>
<Default>colname</Default>
</Literal>
<Literal>
<ID>propname</ID>
<ToolTip>Property type</ToolTip>
<Default>propname</Default>
</Literal>
<Literal>
<ID>fktable</ID>
<ToolTip>Property type</ToolTip>
<Default>fktable</Default>
</Literal>
<Literal>
<ID>fkcolumn</ID>
<ToolTip>Property type</ToolTip>
<Default>id</Default>
</Literal>
</Declarations>
<Code Language="xml">
<![CDATA[<column name="$colname$" hidden="true" type="INTEGER"/>
<foreign-key foreignTable="$fktable$" name="$propname$">
<reference local="$colname$" foreign="$fkcolumn$"/>
</foreign-key>
$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>