-
Notifications
You must be signed in to change notification settings - Fork 0
/
careercloudpoco.snippet
178 lines (166 loc) · 6.72 KB
/
careercloudpoco.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>CareerCloudPocoCSharp</Title>
<Author>Addy</Author>
<Description>Creates the mapped class for a table in the JOB_PORTAL database</Description>
<Shortcut>careercloudpoco</Shortcut>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>System</Namespace>
</Import>
<Import>
<Namespace>System.ComponentModel.DataAnnotations</Namespace>
</Import>
<Import>
<Namespace>System.ComponentModel.DataAnnotations.Schema</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>MyDBTableName</ID>
<ToolTip>Replace with the actual table name in JOB PORTAL DB</ToolTip>
<Default>"Table_"</Default>
</Literal>
<Literal>
<ID>MyTablePocoName</ID>
<ToolTip>Replace with the table poco name format as required by John</ToolTip>
<Default>MyTablePoco</Default>
</Literal>
<Literal>
<ID>MyDBColumnName1</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName2</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName3</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName4</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName5</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName6</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName7</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName8</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyDBColumnName9</ID>
<ToolTip>Replace with the actual db column name in the table in JOB PORTAL DB</ToolTip>
<Default>"MyDBColumnName"</Default>
</Literal>
<Literal>
<ID>MyTableColumnName1</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName1</Default>
</Literal>
<Literal>
<ID>MyTableColumnName2</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName2</Default>
</Literal>
<Literal>
<ID>MyTableColumnName3</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName3</Default>
</Literal>
<Literal>
<ID>MyTableColumnName4</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName4</Default>
</Literal>
<Literal>
<ID>MyTableColumnName5</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName5</Default>
</Literal>
<Literal>
<ID>MyTableColumnName6</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName6</Default>
</Literal>
<Literal>
<ID>MyTableColumnName7</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName7</Default>
</Literal>
<Literal>
<ID>MyTableColumnName8</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName8</Default>
</Literal>
<Literal>
<ID>MyTableColumnName9</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName9</Default>
</Literal>
<!--<Literal>
<ID>MyTableColumnName9</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName9</Default>
</Literal>
<Literal>
<ID>MyTableColumnName10</ID>
<ToolTip>Replace with the table column format as required by John</ToolTip>
<Default>MyTableColumnName10</Default>
</Literal>-->
</Declarations>
<Code Language="CSharp">
<![CDATA[
namespace CareerCloud.Pocos
{
[Table($MyDBTableName$)]
public class $MyTablePocoName$ : IPoco
{
[Key] //guid.
[Column("$MyTableColumnName1$")]
public Guid $MyTableColumnName1$ { get; set; }
[Column("$MyTableColumnName2$")] //datetime or datetime2.
public DateTime? $MyTableColumnName2$ { get; set; }
[Column("$MyTableColumnName3$")] //decimal.
public decimal? $MyTableColumnName3$ { get; set; }
[Column("$MyTableColumnName4$")] //int.
public int? $MyTableColumnName4$ { get; set; }
[Column("$MyTableColumnName5$")] //char or nvarchar or varchar.
public string $MyTableColumnName5$ { get; set; }
[Column("$MyTableColumnName6$")] //smallint.
public short? $MyTableColumnName6$ { get; set; }
[Column("$MyTableColumnName7$")] //timestamp.
public byte[] $MyTableColumnName7$ { get; set; }
[Column("$MyTableColumnName8$")] //tinyint.
public byte? $MyTableColumnName8$ { get; set; }
[Column("$MyTableColumnName9$")] //bit.
public bool? $MyTableColumnName9$ { get; set; }
}
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>