subsonic 3.0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/LICENSE.txt +41 -0
- data/lib/SubSonic.Core.dll +0 -0
- data/lib/T4 Templates/ActiveRecord/ActiveRecord.tt +620 -0
- data/lib/T4 Templates/ActiveRecord/Context.tt +295 -0
- data/lib/T4 Templates/ActiveRecord/SQLServer.ttinclude +347 -0
- data/lib/T4 Templates/ActiveRecord/Settings.ttinclude +552 -0
- data/lib/T4 Templates/ActiveRecord/StoredProcedures.tt +30 -0
- data/lib/T4 Templates/ActiveRecord/Structs.tt +67 -0
- data/lib/T4 Templates/LinqTemplates/Classes.tt +117 -0
- data/lib/T4 Templates/LinqTemplates/Context.tt +276 -0
- data/lib/T4 Templates/LinqTemplates/SQLServer.ttinclude +349 -0
- data/lib/T4 Templates/LinqTemplates/Settings.ttinclude +551 -0
- data/lib/T4 Templates/LinqTemplates/StoredProcedures.tt +30 -0
- data/lib/T4 Templates/LinqTemplates/Structs.tt +67 -0
- data/lib/T4 Templates/README.txt +7 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/ActiveRecord.tt +560 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/ActiveRecord.vb +6447 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Context.tt +258 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Context.vb +349 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/SQLServer.ttinclude +332 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Settings.ttinclude +550 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/StoredProcedures.tt +30 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/StoredProcedures.vb +55 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Structs.tt +57 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Structs.vb +1478 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/ActiveRecord/Tests/FetchTests.vb +52 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/App.config +9 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Application.Designer.vb +13 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Application.myapp +10 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/AssemblyInfo.vb +35 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Resources.Designer.vb +63 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Resources.resx +117 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Settings.Designer.vb +73 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/My Project/Settings.settings +7 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/SubSonic.TemplatesVB.vbproj +171 -0
- data/lib/T4 Templates/SubSonic.TemplatesVB/SubSonic.TemplatesVB.vbproj.user +5 -0
- data/lib/T4 Templates/TemplateProviders/MySQL.ttinclude +278 -0
- data/lib/T4 Templates/TemplateProviders/MySQL.ttinclude.orig +303 -0
- data/lib/T4 Templates/TemplateProviders/MySQLTest.tt +27 -0
- data/lib/T4 Templates/TemplateProviders/SQLite.ttinclude +194 -0
- data/lib/T4 Templates/TemplateProviders/SQLite.ttinclude.orig +236 -0
- data/lib/T4 Templates/TemplateProviders/SQLiteTest.tt +27 -0
- data/lib/T4 Templates/TemplateProviders/Settings.ttinclude +551 -0
- metadata +112 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
<#@ template language="C#v3.5" debug="False" hostspecific="True" #>
|
2
|
+
<#@ output extension=".vb" #>
|
3
|
+
<#@ include file="SQLServer.ttinclude" #>
|
4
|
+
<#
|
5
|
+
var sps = GetSPs();
|
6
|
+
if(sps.Count>0){
|
7
|
+
#>
|
8
|
+
Imports System
|
9
|
+
Imports SubSonic
|
10
|
+
Imports SubSonic.Schema
|
11
|
+
Imports SubSonic.DataProviders
|
12
|
+
|
13
|
+
NameSpace <#=Namespace#>
|
14
|
+
|
15
|
+
Public Class SPs
|
16
|
+
|
17
|
+
<# foreach(var sp in sps){#>
|
18
|
+
Public Shared Function <#=sp.CleanName#>(<#=sp.ArgList#>) As StoredProcedure
|
19
|
+
Dim sp As New StoredProcedure("<#=sp.Name#>",ProviderFactory.GetProvider("<#=ConnectionStringName#>"))
|
20
|
+
<# foreach(var par in sp.Parameters){#>
|
21
|
+
sp.Command.AddParameter("<#=par.Name#>",<#=par.Name#>)
|
22
|
+
<# }#>
|
23
|
+
Return sp
|
24
|
+
End Function
|
25
|
+
<# }#>
|
26
|
+
|
27
|
+
End Class
|
28
|
+
|
29
|
+
End NameSpace
|
30
|
+
<# }#>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Imports System
|
6
|
+
Imports SubSonic
|
7
|
+
Imports SubSonic.Schema
|
8
|
+
Imports SubSonic.DataProviders
|
9
|
+
|
10
|
+
NameSpace Southwind
|
11
|
+
|
12
|
+
Public Class SPs
|
13
|
+
|
14
|
+
Public Shared Function CustOrderHist(CustomerID As String) As StoredProcedure
|
15
|
+
Dim sp As New StoredProcedure("CustOrderHist",ProviderFactory.GetProvider("Northwind"))
|
16
|
+
sp.Command.AddParameter("CustomerID",CustomerID)
|
17
|
+
Return sp
|
18
|
+
End Function
|
19
|
+
Public Shared Function CustOrdersDetail(OrderID As Integer) As StoredProcedure
|
20
|
+
Dim sp As New StoredProcedure("CustOrdersDetail",ProviderFactory.GetProvider("Northwind"))
|
21
|
+
sp.Command.AddParameter("OrderID",OrderID)
|
22
|
+
Return sp
|
23
|
+
End Function
|
24
|
+
Public Shared Function CustOrdersOrders(CustomerID As String) As StoredProcedure
|
25
|
+
Dim sp As New StoredProcedure("CustOrdersOrders",ProviderFactory.GetProvider("Northwind"))
|
26
|
+
sp.Command.AddParameter("CustomerID",CustomerID)
|
27
|
+
Return sp
|
28
|
+
End Function
|
29
|
+
Public Shared Function EmployeeSalesbyCountry(Beginning_Date As Date,Ending_Date As Date) As StoredProcedure
|
30
|
+
Dim sp As New StoredProcedure("Employee Sales by Country",ProviderFactory.GetProvider("Northwind"))
|
31
|
+
sp.Command.AddParameter("Beginning_Date",Beginning_Date)
|
32
|
+
sp.Command.AddParameter("Ending_Date",Ending_Date)
|
33
|
+
Return sp
|
34
|
+
End Function
|
35
|
+
Public Shared Function SalesbyYear(Beginning_Date As Date,Ending_Date As Date) As StoredProcedure
|
36
|
+
Dim sp As New StoredProcedure("Sales by Year",ProviderFactory.GetProvider("Northwind"))
|
37
|
+
sp.Command.AddParameter("Beginning_Date",Beginning_Date)
|
38
|
+
sp.Command.AddParameter("Ending_Date",Ending_Date)
|
39
|
+
Return sp
|
40
|
+
End Function
|
41
|
+
Public Shared Function SalesByCategory(CategoryName As String,OrdYear As String) As StoredProcedure
|
42
|
+
Dim sp As New StoredProcedure("SalesByCategory",ProviderFactory.GetProvider("Northwind"))
|
43
|
+
sp.Command.AddParameter("CategoryName",CategoryName)
|
44
|
+
sp.Command.AddParameter("OrdYear",OrdYear)
|
45
|
+
Return sp
|
46
|
+
End Function
|
47
|
+
Public Shared Function TenMostExpensiveProducts() As StoredProcedure
|
48
|
+
Dim sp As New StoredProcedure("Ten Most Expensive Products",ProviderFactory.GetProvider("Northwind"))
|
49
|
+
Return sp
|
50
|
+
End Function
|
51
|
+
|
52
|
+
End Class
|
53
|
+
|
54
|
+
End NameSpace
|
55
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<#@ template language="C#v3.5" debug="False" hostspecific="True" #>
|
2
|
+
<#@ output extension=".vb" #>
|
3
|
+
<#@ include file="SQLServer.ttinclude" #>
|
4
|
+
<#
|
5
|
+
var tables = LoadTables();
|
6
|
+
#>
|
7
|
+
Imports System
|
8
|
+
Imports SubSonic.Schema
|
9
|
+
Imports System.Collections.Generic
|
10
|
+
Imports SubSonic.DataProviders
|
11
|
+
Imports System.Data
|
12
|
+
|
13
|
+
NameSpace <#=Namespace#>
|
14
|
+
|
15
|
+
<# foreach(var tbl in tables){
|
16
|
+
if(!ExcludeTables.Contains(tbl.Name))
|
17
|
+
{
|
18
|
+
#>
|
19
|
+
''' <summary>
|
20
|
+
''' Table: <#=tbl.Name#>
|
21
|
+
''' Primary Key: <#=tbl.PrimaryKey#>
|
22
|
+
''' </summary>
|
23
|
+
|
24
|
+
Public Class <#=tbl.CleanName#>Table
|
25
|
+
Inherits DatabaseTable
|
26
|
+
|
27
|
+
Public Sub New(provider As IDataProvider)
|
28
|
+
MyBase.New("<#=tbl.Name#>",provider)
|
29
|
+
ClassName = "<#=tbl.ClassName#>"
|
30
|
+
SchemaName = "<#=tbl.Schema#>"
|
31
|
+
|
32
|
+
<# foreach(var col in tbl.Columns){#>
|
33
|
+
Columns.Add(New DatabaseColumn("<#=col.Name#>", Me) With { _
|
34
|
+
.IsPrimaryKey = <#=col.IsPK.ToString().ToLower()#>, _
|
35
|
+
.DataType = DbType.<#=col.DbType.ToString()#>, _
|
36
|
+
.IsNullable = <#=col.IsNullable.ToString().ToLower()#>, _
|
37
|
+
.AutoIncrement = <#=col.AutoIncrement.ToString().ToLower()#>, _
|
38
|
+
.IsForeignKey = <#=col.IsForeignKey.ToString().ToLower()#> _
|
39
|
+
})
|
40
|
+
|
41
|
+
<# }#>
|
42
|
+
End Sub
|
43
|
+
|
44
|
+
<# foreach(var col in tbl.Columns){#>
|
45
|
+
Public ReadOnly Property [<#=col.CleanName#>] As IColumn
|
46
|
+
Get
|
47
|
+
Return Me.GetColumn("<#=col.Name#>")
|
48
|
+
End Get
|
49
|
+
End Property
|
50
|
+
|
51
|
+
<# }#>
|
52
|
+
End Class
|
53
|
+
<#
|
54
|
+
}
|
55
|
+
}
|
56
|
+
#>
|
57
|
+
End NameSpace
|
@@ -0,0 +1,1478 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
Imports System
|
5
|
+
Imports SubSonic.Schema
|
6
|
+
Imports System.Collections.Generic
|
7
|
+
Imports SubSonic.DataProviders
|
8
|
+
Imports System.Data
|
9
|
+
|
10
|
+
NameSpace Southwind
|
11
|
+
|
12
|
+
''' <summary>
|
13
|
+
''' Table: Categories
|
14
|
+
''' Primary Key: CategoryID
|
15
|
+
''' </summary>
|
16
|
+
|
17
|
+
Public Class CategoriesTable
|
18
|
+
Inherits DatabaseTable
|
19
|
+
|
20
|
+
Public Sub New(provider As IDataProvider)
|
21
|
+
MyBase.New("Categories",provider)
|
22
|
+
ClassName = "Category"
|
23
|
+
SchemaName = "dbo"
|
24
|
+
|
25
|
+
Columns.Add(New DatabaseColumn("CategoryID", Me) With { _
|
26
|
+
.IsPrimaryKey = true, _
|
27
|
+
.DataType = DbType.Int32, _
|
28
|
+
.IsNullable = false, _
|
29
|
+
.AutoIncrement = true, _
|
30
|
+
.IsForeignKey = true _
|
31
|
+
})
|
32
|
+
|
33
|
+
Columns.Add(New DatabaseColumn("CategoryName", Me) With { _
|
34
|
+
.IsPrimaryKey = false, _
|
35
|
+
.DataType = DbType.String, _
|
36
|
+
.IsNullable = false, _
|
37
|
+
.AutoIncrement = false, _
|
38
|
+
.IsForeignKey = false _
|
39
|
+
})
|
40
|
+
|
41
|
+
Columns.Add(New DatabaseColumn("Description", Me) With { _
|
42
|
+
.IsPrimaryKey = false, _
|
43
|
+
.DataType = DbType.String, _
|
44
|
+
.IsNullable = true, _
|
45
|
+
.AutoIncrement = false, _
|
46
|
+
.IsForeignKey = false _
|
47
|
+
})
|
48
|
+
|
49
|
+
Columns.Add(New DatabaseColumn("Picture", Me) With { _
|
50
|
+
.IsPrimaryKey = false, _
|
51
|
+
.DataType = DbType.Binary, _
|
52
|
+
.IsNullable = true, _
|
53
|
+
.AutoIncrement = false, _
|
54
|
+
.IsForeignKey = false _
|
55
|
+
})
|
56
|
+
|
57
|
+
|
58
|
+
End Sub
|
59
|
+
|
60
|
+
Public ReadOnly Property [CategoryID] As IColumn
|
61
|
+
Get
|
62
|
+
Return Me.GetColumn("CategoryID")
|
63
|
+
End Get
|
64
|
+
End Property
|
65
|
+
|
66
|
+
Public ReadOnly Property [CategoryName] As IColumn
|
67
|
+
Get
|
68
|
+
Return Me.GetColumn("CategoryName")
|
69
|
+
End Get
|
70
|
+
End Property
|
71
|
+
|
72
|
+
Public ReadOnly Property [Description] As IColumn
|
73
|
+
Get
|
74
|
+
Return Me.GetColumn("Description")
|
75
|
+
End Get
|
76
|
+
End Property
|
77
|
+
|
78
|
+
Public ReadOnly Property [Picture] As IColumn
|
79
|
+
Get
|
80
|
+
Return Me.GetColumn("Picture")
|
81
|
+
End Get
|
82
|
+
End Property
|
83
|
+
|
84
|
+
|
85
|
+
End Class
|
86
|
+
''' <summary>
|
87
|
+
''' Table: Customers
|
88
|
+
''' Primary Key: CustomerID
|
89
|
+
''' </summary>
|
90
|
+
|
91
|
+
Public Class CustomersTable
|
92
|
+
Inherits DatabaseTable
|
93
|
+
|
94
|
+
Public Sub New(provider As IDataProvider)
|
95
|
+
MyBase.New("Customers",provider)
|
96
|
+
ClassName = "Customer"
|
97
|
+
SchemaName = "dbo"
|
98
|
+
|
99
|
+
Columns.Add(New DatabaseColumn("CustomerID", Me) With { _
|
100
|
+
.IsPrimaryKey = true, _
|
101
|
+
.DataType = DbType.String, _
|
102
|
+
.IsNullable = false, _
|
103
|
+
.AutoIncrement = false, _
|
104
|
+
.IsForeignKey = true _
|
105
|
+
})
|
106
|
+
|
107
|
+
Columns.Add(New DatabaseColumn("CompanyName", Me) With { _
|
108
|
+
.IsPrimaryKey = false, _
|
109
|
+
.DataType = DbType.String, _
|
110
|
+
.IsNullable = false, _
|
111
|
+
.AutoIncrement = false, _
|
112
|
+
.IsForeignKey = false _
|
113
|
+
})
|
114
|
+
|
115
|
+
Columns.Add(New DatabaseColumn("ContactName", Me) With { _
|
116
|
+
.IsPrimaryKey = false, _
|
117
|
+
.DataType = DbType.String, _
|
118
|
+
.IsNullable = true, _
|
119
|
+
.AutoIncrement = false, _
|
120
|
+
.IsForeignKey = false _
|
121
|
+
})
|
122
|
+
|
123
|
+
Columns.Add(New DatabaseColumn("ContactTitle", Me) With { _
|
124
|
+
.IsPrimaryKey = false, _
|
125
|
+
.DataType = DbType.String, _
|
126
|
+
.IsNullable = true, _
|
127
|
+
.AutoIncrement = false, _
|
128
|
+
.IsForeignKey = false _
|
129
|
+
})
|
130
|
+
|
131
|
+
Columns.Add(New DatabaseColumn("Address", Me) With { _
|
132
|
+
.IsPrimaryKey = false, _
|
133
|
+
.DataType = DbType.String, _
|
134
|
+
.IsNullable = true, _
|
135
|
+
.AutoIncrement = false, _
|
136
|
+
.IsForeignKey = false _
|
137
|
+
})
|
138
|
+
|
139
|
+
Columns.Add(New DatabaseColumn("City", Me) With { _
|
140
|
+
.IsPrimaryKey = false, _
|
141
|
+
.DataType = DbType.String, _
|
142
|
+
.IsNullable = true, _
|
143
|
+
.AutoIncrement = false, _
|
144
|
+
.IsForeignKey = false _
|
145
|
+
})
|
146
|
+
|
147
|
+
Columns.Add(New DatabaseColumn("Region", Me) With { _
|
148
|
+
.IsPrimaryKey = false, _
|
149
|
+
.DataType = DbType.String, _
|
150
|
+
.IsNullable = true, _
|
151
|
+
.AutoIncrement = false, _
|
152
|
+
.IsForeignKey = false _
|
153
|
+
})
|
154
|
+
|
155
|
+
Columns.Add(New DatabaseColumn("PostalCode", Me) With { _
|
156
|
+
.IsPrimaryKey = false, _
|
157
|
+
.DataType = DbType.String, _
|
158
|
+
.IsNullable = true, _
|
159
|
+
.AutoIncrement = false, _
|
160
|
+
.IsForeignKey = false _
|
161
|
+
})
|
162
|
+
|
163
|
+
Columns.Add(New DatabaseColumn("Country", Me) With { _
|
164
|
+
.IsPrimaryKey = false, _
|
165
|
+
.DataType = DbType.String, _
|
166
|
+
.IsNullable = true, _
|
167
|
+
.AutoIncrement = false, _
|
168
|
+
.IsForeignKey = false _
|
169
|
+
})
|
170
|
+
|
171
|
+
Columns.Add(New DatabaseColumn("Phone", Me) With { _
|
172
|
+
.IsPrimaryKey = false, _
|
173
|
+
.DataType = DbType.String, _
|
174
|
+
.IsNullable = true, _
|
175
|
+
.AutoIncrement = false, _
|
176
|
+
.IsForeignKey = false _
|
177
|
+
})
|
178
|
+
|
179
|
+
Columns.Add(New DatabaseColumn("Fax", Me) With { _
|
180
|
+
.IsPrimaryKey = false, _
|
181
|
+
.DataType = DbType.String, _
|
182
|
+
.IsNullable = true, _
|
183
|
+
.AutoIncrement = false, _
|
184
|
+
.IsForeignKey = false _
|
185
|
+
})
|
186
|
+
|
187
|
+
|
188
|
+
End Sub
|
189
|
+
|
190
|
+
Public ReadOnly Property [CustomerID] As IColumn
|
191
|
+
Get
|
192
|
+
Return Me.GetColumn("CustomerID")
|
193
|
+
End Get
|
194
|
+
End Property
|
195
|
+
|
196
|
+
Public ReadOnly Property [CompanyName] As IColumn
|
197
|
+
Get
|
198
|
+
Return Me.GetColumn("CompanyName")
|
199
|
+
End Get
|
200
|
+
End Property
|
201
|
+
|
202
|
+
Public ReadOnly Property [ContactName] As IColumn
|
203
|
+
Get
|
204
|
+
Return Me.GetColumn("ContactName")
|
205
|
+
End Get
|
206
|
+
End Property
|
207
|
+
|
208
|
+
Public ReadOnly Property [ContactTitle] As IColumn
|
209
|
+
Get
|
210
|
+
Return Me.GetColumn("ContactTitle")
|
211
|
+
End Get
|
212
|
+
End Property
|
213
|
+
|
214
|
+
Public ReadOnly Property [Address] As IColumn
|
215
|
+
Get
|
216
|
+
Return Me.GetColumn("Address")
|
217
|
+
End Get
|
218
|
+
End Property
|
219
|
+
|
220
|
+
Public ReadOnly Property [City] As IColumn
|
221
|
+
Get
|
222
|
+
Return Me.GetColumn("City")
|
223
|
+
End Get
|
224
|
+
End Property
|
225
|
+
|
226
|
+
Public ReadOnly Property [Region] As IColumn
|
227
|
+
Get
|
228
|
+
Return Me.GetColumn("Region")
|
229
|
+
End Get
|
230
|
+
End Property
|
231
|
+
|
232
|
+
Public ReadOnly Property [PostalCode] As IColumn
|
233
|
+
Get
|
234
|
+
Return Me.GetColumn("PostalCode")
|
235
|
+
End Get
|
236
|
+
End Property
|
237
|
+
|
238
|
+
Public ReadOnly Property [Country] As IColumn
|
239
|
+
Get
|
240
|
+
Return Me.GetColumn("Country")
|
241
|
+
End Get
|
242
|
+
End Property
|
243
|
+
|
244
|
+
Public ReadOnly Property [Phone] As IColumn
|
245
|
+
Get
|
246
|
+
Return Me.GetColumn("Phone")
|
247
|
+
End Get
|
248
|
+
End Property
|
249
|
+
|
250
|
+
Public ReadOnly Property [Fax] As IColumn
|
251
|
+
Get
|
252
|
+
Return Me.GetColumn("Fax")
|
253
|
+
End Get
|
254
|
+
End Property
|
255
|
+
|
256
|
+
|
257
|
+
End Class
|
258
|
+
''' <summary>
|
259
|
+
''' Table: Shippers
|
260
|
+
''' Primary Key: ShipperID
|
261
|
+
''' </summary>
|
262
|
+
|
263
|
+
Public Class ShippersTable
|
264
|
+
Inherits DatabaseTable
|
265
|
+
|
266
|
+
Public Sub New(provider As IDataProvider)
|
267
|
+
MyBase.New("Shippers",provider)
|
268
|
+
ClassName = "Shipper"
|
269
|
+
SchemaName = "dbo"
|
270
|
+
|
271
|
+
Columns.Add(New DatabaseColumn("ShipperID", Me) With { _
|
272
|
+
.IsPrimaryKey = true, _
|
273
|
+
.DataType = DbType.Int32, _
|
274
|
+
.IsNullable = false, _
|
275
|
+
.AutoIncrement = true, _
|
276
|
+
.IsForeignKey = true _
|
277
|
+
})
|
278
|
+
|
279
|
+
Columns.Add(New DatabaseColumn("CompanyName", Me) With { _
|
280
|
+
.IsPrimaryKey = false, _
|
281
|
+
.DataType = DbType.String, _
|
282
|
+
.IsNullable = false, _
|
283
|
+
.AutoIncrement = false, _
|
284
|
+
.IsForeignKey = false _
|
285
|
+
})
|
286
|
+
|
287
|
+
Columns.Add(New DatabaseColumn("Phone", Me) With { _
|
288
|
+
.IsPrimaryKey = false, _
|
289
|
+
.DataType = DbType.String, _
|
290
|
+
.IsNullable = true, _
|
291
|
+
.AutoIncrement = false, _
|
292
|
+
.IsForeignKey = false _
|
293
|
+
})
|
294
|
+
|
295
|
+
|
296
|
+
End Sub
|
297
|
+
|
298
|
+
Public ReadOnly Property [ShipperID] As IColumn
|
299
|
+
Get
|
300
|
+
Return Me.GetColumn("ShipperID")
|
301
|
+
End Get
|
302
|
+
End Property
|
303
|
+
|
304
|
+
Public ReadOnly Property [CompanyName] As IColumn
|
305
|
+
Get
|
306
|
+
Return Me.GetColumn("CompanyName")
|
307
|
+
End Get
|
308
|
+
End Property
|
309
|
+
|
310
|
+
Public ReadOnly Property [Phone] As IColumn
|
311
|
+
Get
|
312
|
+
Return Me.GetColumn("Phone")
|
313
|
+
End Get
|
314
|
+
End Property
|
315
|
+
|
316
|
+
|
317
|
+
End Class
|
318
|
+
''' <summary>
|
319
|
+
''' Table: Suppliers
|
320
|
+
''' Primary Key: SupplierID
|
321
|
+
''' </summary>
|
322
|
+
|
323
|
+
Public Class SuppliersTable
|
324
|
+
Inherits DatabaseTable
|
325
|
+
|
326
|
+
Public Sub New(provider As IDataProvider)
|
327
|
+
MyBase.New("Suppliers",provider)
|
328
|
+
ClassName = "Supplier"
|
329
|
+
SchemaName = "dbo"
|
330
|
+
|
331
|
+
Columns.Add(New DatabaseColumn("SupplierID", Me) With { _
|
332
|
+
.IsPrimaryKey = true, _
|
333
|
+
.DataType = DbType.Int32, _
|
334
|
+
.IsNullable = false, _
|
335
|
+
.AutoIncrement = true, _
|
336
|
+
.IsForeignKey = true _
|
337
|
+
})
|
338
|
+
|
339
|
+
Columns.Add(New DatabaseColumn("CompanyName", Me) With { _
|
340
|
+
.IsPrimaryKey = false, _
|
341
|
+
.DataType = DbType.String, _
|
342
|
+
.IsNullable = false, _
|
343
|
+
.AutoIncrement = false, _
|
344
|
+
.IsForeignKey = false _
|
345
|
+
})
|
346
|
+
|
347
|
+
Columns.Add(New DatabaseColumn("ContactName", Me) With { _
|
348
|
+
.IsPrimaryKey = false, _
|
349
|
+
.DataType = DbType.String, _
|
350
|
+
.IsNullable = true, _
|
351
|
+
.AutoIncrement = false, _
|
352
|
+
.IsForeignKey = false _
|
353
|
+
})
|
354
|
+
|
355
|
+
Columns.Add(New DatabaseColumn("ContactTitle", Me) With { _
|
356
|
+
.IsPrimaryKey = false, _
|
357
|
+
.DataType = DbType.String, _
|
358
|
+
.IsNullable = true, _
|
359
|
+
.AutoIncrement = false, _
|
360
|
+
.IsForeignKey = false _
|
361
|
+
})
|
362
|
+
|
363
|
+
Columns.Add(New DatabaseColumn("Address", Me) With { _
|
364
|
+
.IsPrimaryKey = false, _
|
365
|
+
.DataType = DbType.String, _
|
366
|
+
.IsNullable = true, _
|
367
|
+
.AutoIncrement = false, _
|
368
|
+
.IsForeignKey = false _
|
369
|
+
})
|
370
|
+
|
371
|
+
Columns.Add(New DatabaseColumn("City", Me) With { _
|
372
|
+
.IsPrimaryKey = false, _
|
373
|
+
.DataType = DbType.String, _
|
374
|
+
.IsNullable = true, _
|
375
|
+
.AutoIncrement = false, _
|
376
|
+
.IsForeignKey = false _
|
377
|
+
})
|
378
|
+
|
379
|
+
Columns.Add(New DatabaseColumn("Region", Me) With { _
|
380
|
+
.IsPrimaryKey = false, _
|
381
|
+
.DataType = DbType.String, _
|
382
|
+
.IsNullable = true, _
|
383
|
+
.AutoIncrement = false, _
|
384
|
+
.IsForeignKey = false _
|
385
|
+
})
|
386
|
+
|
387
|
+
Columns.Add(New DatabaseColumn("PostalCode", Me) With { _
|
388
|
+
.IsPrimaryKey = false, _
|
389
|
+
.DataType = DbType.String, _
|
390
|
+
.IsNullable = true, _
|
391
|
+
.AutoIncrement = false, _
|
392
|
+
.IsForeignKey = false _
|
393
|
+
})
|
394
|
+
|
395
|
+
Columns.Add(New DatabaseColumn("Country", Me) With { _
|
396
|
+
.IsPrimaryKey = false, _
|
397
|
+
.DataType = DbType.String, _
|
398
|
+
.IsNullable = true, _
|
399
|
+
.AutoIncrement = false, _
|
400
|
+
.IsForeignKey = false _
|
401
|
+
})
|
402
|
+
|
403
|
+
Columns.Add(New DatabaseColumn("Phone", Me) With { _
|
404
|
+
.IsPrimaryKey = false, _
|
405
|
+
.DataType = DbType.String, _
|
406
|
+
.IsNullable = true, _
|
407
|
+
.AutoIncrement = false, _
|
408
|
+
.IsForeignKey = false _
|
409
|
+
})
|
410
|
+
|
411
|
+
Columns.Add(New DatabaseColumn("Fax", Me) With { _
|
412
|
+
.IsPrimaryKey = false, _
|
413
|
+
.DataType = DbType.String, _
|
414
|
+
.IsNullable = true, _
|
415
|
+
.AutoIncrement = false, _
|
416
|
+
.IsForeignKey = false _
|
417
|
+
})
|
418
|
+
|
419
|
+
Columns.Add(New DatabaseColumn("HomePage", Me) With { _
|
420
|
+
.IsPrimaryKey = false, _
|
421
|
+
.DataType = DbType.String, _
|
422
|
+
.IsNullable = true, _
|
423
|
+
.AutoIncrement = false, _
|
424
|
+
.IsForeignKey = false _
|
425
|
+
})
|
426
|
+
|
427
|
+
|
428
|
+
End Sub
|
429
|
+
|
430
|
+
Public ReadOnly Property [SupplierID] As IColumn
|
431
|
+
Get
|
432
|
+
Return Me.GetColumn("SupplierID")
|
433
|
+
End Get
|
434
|
+
End Property
|
435
|
+
|
436
|
+
Public ReadOnly Property [CompanyName] As IColumn
|
437
|
+
Get
|
438
|
+
Return Me.GetColumn("CompanyName")
|
439
|
+
End Get
|
440
|
+
End Property
|
441
|
+
|
442
|
+
Public ReadOnly Property [ContactName] As IColumn
|
443
|
+
Get
|
444
|
+
Return Me.GetColumn("ContactName")
|
445
|
+
End Get
|
446
|
+
End Property
|
447
|
+
|
448
|
+
Public ReadOnly Property [ContactTitle] As IColumn
|
449
|
+
Get
|
450
|
+
Return Me.GetColumn("ContactTitle")
|
451
|
+
End Get
|
452
|
+
End Property
|
453
|
+
|
454
|
+
Public ReadOnly Property [Address] As IColumn
|
455
|
+
Get
|
456
|
+
Return Me.GetColumn("Address")
|
457
|
+
End Get
|
458
|
+
End Property
|
459
|
+
|
460
|
+
Public ReadOnly Property [City] As IColumn
|
461
|
+
Get
|
462
|
+
Return Me.GetColumn("City")
|
463
|
+
End Get
|
464
|
+
End Property
|
465
|
+
|
466
|
+
Public ReadOnly Property [Region] As IColumn
|
467
|
+
Get
|
468
|
+
Return Me.GetColumn("Region")
|
469
|
+
End Get
|
470
|
+
End Property
|
471
|
+
|
472
|
+
Public ReadOnly Property [PostalCode] As IColumn
|
473
|
+
Get
|
474
|
+
Return Me.GetColumn("PostalCode")
|
475
|
+
End Get
|
476
|
+
End Property
|
477
|
+
|
478
|
+
Public ReadOnly Property [Country] As IColumn
|
479
|
+
Get
|
480
|
+
Return Me.GetColumn("Country")
|
481
|
+
End Get
|
482
|
+
End Property
|
483
|
+
|
484
|
+
Public ReadOnly Property [Phone] As IColumn
|
485
|
+
Get
|
486
|
+
Return Me.GetColumn("Phone")
|
487
|
+
End Get
|
488
|
+
End Property
|
489
|
+
|
490
|
+
Public ReadOnly Property [Fax] As IColumn
|
491
|
+
Get
|
492
|
+
Return Me.GetColumn("Fax")
|
493
|
+
End Get
|
494
|
+
End Property
|
495
|
+
|
496
|
+
Public ReadOnly Property [HomePage] As IColumn
|
497
|
+
Get
|
498
|
+
Return Me.GetColumn("HomePage")
|
499
|
+
End Get
|
500
|
+
End Property
|
501
|
+
|
502
|
+
|
503
|
+
End Class
|
504
|
+
''' <summary>
|
505
|
+
''' Table: Orders
|
506
|
+
''' Primary Key: OrderID
|
507
|
+
''' </summary>
|
508
|
+
|
509
|
+
Public Class OrdersTable
|
510
|
+
Inherits DatabaseTable
|
511
|
+
|
512
|
+
Public Sub New(provider As IDataProvider)
|
513
|
+
MyBase.New("Orders",provider)
|
514
|
+
ClassName = "Order"
|
515
|
+
SchemaName = "dbo"
|
516
|
+
|
517
|
+
Columns.Add(New DatabaseColumn("OrderID", Me) With { _
|
518
|
+
.IsPrimaryKey = true, _
|
519
|
+
.DataType = DbType.Int32, _
|
520
|
+
.IsNullable = false, _
|
521
|
+
.AutoIncrement = true, _
|
522
|
+
.IsForeignKey = true _
|
523
|
+
})
|
524
|
+
|
525
|
+
Columns.Add(New DatabaseColumn("CustomerID", Me) With { _
|
526
|
+
.IsPrimaryKey = false, _
|
527
|
+
.DataType = DbType.String, _
|
528
|
+
.IsNullable = true, _
|
529
|
+
.AutoIncrement = false, _
|
530
|
+
.IsForeignKey = true _
|
531
|
+
})
|
532
|
+
|
533
|
+
Columns.Add(New DatabaseColumn("EmployeeID", Me) With { _
|
534
|
+
.IsPrimaryKey = false, _
|
535
|
+
.DataType = DbType.Int32, _
|
536
|
+
.IsNullable = true, _
|
537
|
+
.AutoIncrement = false, _
|
538
|
+
.IsForeignKey = true _
|
539
|
+
})
|
540
|
+
|
541
|
+
Columns.Add(New DatabaseColumn("OrderDate", Me) With { _
|
542
|
+
.IsPrimaryKey = false, _
|
543
|
+
.DataType = DbType.DateTime, _
|
544
|
+
.IsNullable = false, _
|
545
|
+
.AutoIncrement = false, _
|
546
|
+
.IsForeignKey = false _
|
547
|
+
})
|
548
|
+
|
549
|
+
Columns.Add(New DatabaseColumn("RequiredDate", Me) With { _
|
550
|
+
.IsPrimaryKey = false, _
|
551
|
+
.DataType = DbType.DateTime, _
|
552
|
+
.IsNullable = true, _
|
553
|
+
.AutoIncrement = false, _
|
554
|
+
.IsForeignKey = false _
|
555
|
+
})
|
556
|
+
|
557
|
+
Columns.Add(New DatabaseColumn("ShippedDate", Me) With { _
|
558
|
+
.IsPrimaryKey = false, _
|
559
|
+
.DataType = DbType.DateTime, _
|
560
|
+
.IsNullable = true, _
|
561
|
+
.AutoIncrement = false, _
|
562
|
+
.IsForeignKey = false _
|
563
|
+
})
|
564
|
+
|
565
|
+
Columns.Add(New DatabaseColumn("ShipVia", Me) With { _
|
566
|
+
.IsPrimaryKey = false, _
|
567
|
+
.DataType = DbType.Int32, _
|
568
|
+
.IsNullable = true, _
|
569
|
+
.AutoIncrement = false, _
|
570
|
+
.IsForeignKey = true _
|
571
|
+
})
|
572
|
+
|
573
|
+
Columns.Add(New DatabaseColumn("Freight", Me) With { _
|
574
|
+
.IsPrimaryKey = false, _
|
575
|
+
.DataType = DbType.Currency, _
|
576
|
+
.IsNullable = true, _
|
577
|
+
.AutoIncrement = false, _
|
578
|
+
.IsForeignKey = false _
|
579
|
+
})
|
580
|
+
|
581
|
+
Columns.Add(New DatabaseColumn("ShipName", Me) With { _
|
582
|
+
.IsPrimaryKey = false, _
|
583
|
+
.DataType = DbType.String, _
|
584
|
+
.IsNullable = true, _
|
585
|
+
.AutoIncrement = false, _
|
586
|
+
.IsForeignKey = false _
|
587
|
+
})
|
588
|
+
|
589
|
+
Columns.Add(New DatabaseColumn("ShipAddress", Me) With { _
|
590
|
+
.IsPrimaryKey = false, _
|
591
|
+
.DataType = DbType.String, _
|
592
|
+
.IsNullable = true, _
|
593
|
+
.AutoIncrement = false, _
|
594
|
+
.IsForeignKey = false _
|
595
|
+
})
|
596
|
+
|
597
|
+
Columns.Add(New DatabaseColumn("ShipCity", Me) With { _
|
598
|
+
.IsPrimaryKey = false, _
|
599
|
+
.DataType = DbType.String, _
|
600
|
+
.IsNullable = true, _
|
601
|
+
.AutoIncrement = false, _
|
602
|
+
.IsForeignKey = false _
|
603
|
+
})
|
604
|
+
|
605
|
+
Columns.Add(New DatabaseColumn("ShipRegion", Me) With { _
|
606
|
+
.IsPrimaryKey = false, _
|
607
|
+
.DataType = DbType.String, _
|
608
|
+
.IsNullable = true, _
|
609
|
+
.AutoIncrement = false, _
|
610
|
+
.IsForeignKey = false _
|
611
|
+
})
|
612
|
+
|
613
|
+
Columns.Add(New DatabaseColumn("ShipPostalCode", Me) With { _
|
614
|
+
.IsPrimaryKey = false, _
|
615
|
+
.DataType = DbType.String, _
|
616
|
+
.IsNullable = true, _
|
617
|
+
.AutoIncrement = false, _
|
618
|
+
.IsForeignKey = false _
|
619
|
+
})
|
620
|
+
|
621
|
+
Columns.Add(New DatabaseColumn("ShipCountry", Me) With { _
|
622
|
+
.IsPrimaryKey = false, _
|
623
|
+
.DataType = DbType.String, _
|
624
|
+
.IsNullable = true, _
|
625
|
+
.AutoIncrement = false, _
|
626
|
+
.IsForeignKey = false _
|
627
|
+
})
|
628
|
+
|
629
|
+
|
630
|
+
End Sub
|
631
|
+
|
632
|
+
Public ReadOnly Property [OrderID] As IColumn
|
633
|
+
Get
|
634
|
+
Return Me.GetColumn("OrderID")
|
635
|
+
End Get
|
636
|
+
End Property
|
637
|
+
|
638
|
+
Public ReadOnly Property [CustomerID] As IColumn
|
639
|
+
Get
|
640
|
+
Return Me.GetColumn("CustomerID")
|
641
|
+
End Get
|
642
|
+
End Property
|
643
|
+
|
644
|
+
Public ReadOnly Property [EmployeeID] As IColumn
|
645
|
+
Get
|
646
|
+
Return Me.GetColumn("EmployeeID")
|
647
|
+
End Get
|
648
|
+
End Property
|
649
|
+
|
650
|
+
Public ReadOnly Property [OrderDate] As IColumn
|
651
|
+
Get
|
652
|
+
Return Me.GetColumn("OrderDate")
|
653
|
+
End Get
|
654
|
+
End Property
|
655
|
+
|
656
|
+
Public ReadOnly Property [RequiredDate] As IColumn
|
657
|
+
Get
|
658
|
+
Return Me.GetColumn("RequiredDate")
|
659
|
+
End Get
|
660
|
+
End Property
|
661
|
+
|
662
|
+
Public ReadOnly Property [ShippedDate] As IColumn
|
663
|
+
Get
|
664
|
+
Return Me.GetColumn("ShippedDate")
|
665
|
+
End Get
|
666
|
+
End Property
|
667
|
+
|
668
|
+
Public ReadOnly Property [ShipVia] As IColumn
|
669
|
+
Get
|
670
|
+
Return Me.GetColumn("ShipVia")
|
671
|
+
End Get
|
672
|
+
End Property
|
673
|
+
|
674
|
+
Public ReadOnly Property [Freight] As IColumn
|
675
|
+
Get
|
676
|
+
Return Me.GetColumn("Freight")
|
677
|
+
End Get
|
678
|
+
End Property
|
679
|
+
|
680
|
+
Public ReadOnly Property [ShipName] As IColumn
|
681
|
+
Get
|
682
|
+
Return Me.GetColumn("ShipName")
|
683
|
+
End Get
|
684
|
+
End Property
|
685
|
+
|
686
|
+
Public ReadOnly Property [ShipAddress] As IColumn
|
687
|
+
Get
|
688
|
+
Return Me.GetColumn("ShipAddress")
|
689
|
+
End Get
|
690
|
+
End Property
|
691
|
+
|
692
|
+
Public ReadOnly Property [ShipCity] As IColumn
|
693
|
+
Get
|
694
|
+
Return Me.GetColumn("ShipCity")
|
695
|
+
End Get
|
696
|
+
End Property
|
697
|
+
|
698
|
+
Public ReadOnly Property [ShipRegion] As IColumn
|
699
|
+
Get
|
700
|
+
Return Me.GetColumn("ShipRegion")
|
701
|
+
End Get
|
702
|
+
End Property
|
703
|
+
|
704
|
+
Public ReadOnly Property [ShipPostalCode] As IColumn
|
705
|
+
Get
|
706
|
+
Return Me.GetColumn("ShipPostalCode")
|
707
|
+
End Get
|
708
|
+
End Property
|
709
|
+
|
710
|
+
Public ReadOnly Property [ShipCountry] As IColumn
|
711
|
+
Get
|
712
|
+
Return Me.GetColumn("ShipCountry")
|
713
|
+
End Get
|
714
|
+
End Property
|
715
|
+
|
716
|
+
|
717
|
+
End Class
|
718
|
+
''' <summary>
|
719
|
+
''' Table: Products
|
720
|
+
''' Primary Key: ProductID
|
721
|
+
''' </summary>
|
722
|
+
|
723
|
+
Public Class ProductsTable
|
724
|
+
Inherits DatabaseTable
|
725
|
+
|
726
|
+
Public Sub New(provider As IDataProvider)
|
727
|
+
MyBase.New("Products",provider)
|
728
|
+
ClassName = "Product"
|
729
|
+
SchemaName = "dbo"
|
730
|
+
|
731
|
+
Columns.Add(New DatabaseColumn("ProductID", Me) With { _
|
732
|
+
.IsPrimaryKey = true, _
|
733
|
+
.DataType = DbType.Int32, _
|
734
|
+
.IsNullable = false, _
|
735
|
+
.AutoIncrement = true, _
|
736
|
+
.IsForeignKey = true _
|
737
|
+
})
|
738
|
+
|
739
|
+
Columns.Add(New DatabaseColumn("ProductName", Me) With { _
|
740
|
+
.IsPrimaryKey = false, _
|
741
|
+
.DataType = DbType.String, _
|
742
|
+
.IsNullable = false, _
|
743
|
+
.AutoIncrement = false, _
|
744
|
+
.IsForeignKey = false _
|
745
|
+
})
|
746
|
+
|
747
|
+
Columns.Add(New DatabaseColumn("SupplierID", Me) With { _
|
748
|
+
.IsPrimaryKey = false, _
|
749
|
+
.DataType = DbType.Int32, _
|
750
|
+
.IsNullable = true, _
|
751
|
+
.AutoIncrement = false, _
|
752
|
+
.IsForeignKey = true _
|
753
|
+
})
|
754
|
+
|
755
|
+
Columns.Add(New DatabaseColumn("CategoryID", Me) With { _
|
756
|
+
.IsPrimaryKey = false, _
|
757
|
+
.DataType = DbType.Int32, _
|
758
|
+
.IsNullable = true, _
|
759
|
+
.AutoIncrement = false, _
|
760
|
+
.IsForeignKey = true _
|
761
|
+
})
|
762
|
+
|
763
|
+
Columns.Add(New DatabaseColumn("QuantityPerUnit", Me) With { _
|
764
|
+
.IsPrimaryKey = false, _
|
765
|
+
.DataType = DbType.String, _
|
766
|
+
.IsNullable = true, _
|
767
|
+
.AutoIncrement = false, _
|
768
|
+
.IsForeignKey = false _
|
769
|
+
})
|
770
|
+
|
771
|
+
Columns.Add(New DatabaseColumn("UnitPrice", Me) With { _
|
772
|
+
.IsPrimaryKey = false, _
|
773
|
+
.DataType = DbType.Currency, _
|
774
|
+
.IsNullable = true, _
|
775
|
+
.AutoIncrement = false, _
|
776
|
+
.IsForeignKey = false _
|
777
|
+
})
|
778
|
+
|
779
|
+
Columns.Add(New DatabaseColumn("UnitsInStock", Me) With { _
|
780
|
+
.IsPrimaryKey = false, _
|
781
|
+
.DataType = DbType.Int16, _
|
782
|
+
.IsNullable = true, _
|
783
|
+
.AutoIncrement = false, _
|
784
|
+
.IsForeignKey = false _
|
785
|
+
})
|
786
|
+
|
787
|
+
Columns.Add(New DatabaseColumn("UnitsOnOrder", Me) With { _
|
788
|
+
.IsPrimaryKey = false, _
|
789
|
+
.DataType = DbType.Int16, _
|
790
|
+
.IsNullable = true, _
|
791
|
+
.AutoIncrement = false, _
|
792
|
+
.IsForeignKey = false _
|
793
|
+
})
|
794
|
+
|
795
|
+
Columns.Add(New DatabaseColumn("ReorderLevel", Me) With { _
|
796
|
+
.IsPrimaryKey = false, _
|
797
|
+
.DataType = DbType.Int16, _
|
798
|
+
.IsNullable = true, _
|
799
|
+
.AutoIncrement = false, _
|
800
|
+
.IsForeignKey = false _
|
801
|
+
})
|
802
|
+
|
803
|
+
Columns.Add(New DatabaseColumn("Discontinued", Me) With { _
|
804
|
+
.IsPrimaryKey = false, _
|
805
|
+
.DataType = DbType.Boolean, _
|
806
|
+
.IsNullable = false, _
|
807
|
+
.AutoIncrement = false, _
|
808
|
+
.IsForeignKey = false _
|
809
|
+
})
|
810
|
+
|
811
|
+
|
812
|
+
End Sub
|
813
|
+
|
814
|
+
Public ReadOnly Property [ProductID] As IColumn
|
815
|
+
Get
|
816
|
+
Return Me.GetColumn("ProductID")
|
817
|
+
End Get
|
818
|
+
End Property
|
819
|
+
|
820
|
+
Public ReadOnly Property [ProductName] As IColumn
|
821
|
+
Get
|
822
|
+
Return Me.GetColumn("ProductName")
|
823
|
+
End Get
|
824
|
+
End Property
|
825
|
+
|
826
|
+
Public ReadOnly Property [SupplierID] As IColumn
|
827
|
+
Get
|
828
|
+
Return Me.GetColumn("SupplierID")
|
829
|
+
End Get
|
830
|
+
End Property
|
831
|
+
|
832
|
+
Public ReadOnly Property [CategoryID] As IColumn
|
833
|
+
Get
|
834
|
+
Return Me.GetColumn("CategoryID")
|
835
|
+
End Get
|
836
|
+
End Property
|
837
|
+
|
838
|
+
Public ReadOnly Property [QuantityPerUnit] As IColumn
|
839
|
+
Get
|
840
|
+
Return Me.GetColumn("QuantityPerUnit")
|
841
|
+
End Get
|
842
|
+
End Property
|
843
|
+
|
844
|
+
Public ReadOnly Property [UnitPrice] As IColumn
|
845
|
+
Get
|
846
|
+
Return Me.GetColumn("UnitPrice")
|
847
|
+
End Get
|
848
|
+
End Property
|
849
|
+
|
850
|
+
Public ReadOnly Property [UnitsInStock] As IColumn
|
851
|
+
Get
|
852
|
+
Return Me.GetColumn("UnitsInStock")
|
853
|
+
End Get
|
854
|
+
End Property
|
855
|
+
|
856
|
+
Public ReadOnly Property [UnitsOnOrder] As IColumn
|
857
|
+
Get
|
858
|
+
Return Me.GetColumn("UnitsOnOrder")
|
859
|
+
End Get
|
860
|
+
End Property
|
861
|
+
|
862
|
+
Public ReadOnly Property [ReorderLevel] As IColumn
|
863
|
+
Get
|
864
|
+
Return Me.GetColumn("ReorderLevel")
|
865
|
+
End Get
|
866
|
+
End Property
|
867
|
+
|
868
|
+
Public ReadOnly Property [Discontinued] As IColumn
|
869
|
+
Get
|
870
|
+
Return Me.GetColumn("Discontinued")
|
871
|
+
End Get
|
872
|
+
End Property
|
873
|
+
|
874
|
+
|
875
|
+
End Class
|
876
|
+
''' <summary>
|
877
|
+
''' Table: Order Details
|
878
|
+
''' Primary Key: OrderID
|
879
|
+
''' </summary>
|
880
|
+
|
881
|
+
Public Class OrderDetailsTable
|
882
|
+
Inherits DatabaseTable
|
883
|
+
|
884
|
+
Public Sub New(provider As IDataProvider)
|
885
|
+
MyBase.New("Order Details",provider)
|
886
|
+
ClassName = "OrderDetail"
|
887
|
+
SchemaName = "dbo"
|
888
|
+
|
889
|
+
Columns.Add(New DatabaseColumn("OrderID", Me) With { _
|
890
|
+
.IsPrimaryKey = true, _
|
891
|
+
.DataType = DbType.Int32, _
|
892
|
+
.IsNullable = false, _
|
893
|
+
.AutoIncrement = false, _
|
894
|
+
.IsForeignKey = true _
|
895
|
+
})
|
896
|
+
|
897
|
+
Columns.Add(New DatabaseColumn("ProductID", Me) With { _
|
898
|
+
.IsPrimaryKey = false, _
|
899
|
+
.DataType = DbType.Int32, _
|
900
|
+
.IsNullable = false, _
|
901
|
+
.AutoIncrement = false, _
|
902
|
+
.IsForeignKey = true _
|
903
|
+
})
|
904
|
+
|
905
|
+
Columns.Add(New DatabaseColumn("UnitPrice", Me) With { _
|
906
|
+
.IsPrimaryKey = false, _
|
907
|
+
.DataType = DbType.Currency, _
|
908
|
+
.IsNullable = false, _
|
909
|
+
.AutoIncrement = false, _
|
910
|
+
.IsForeignKey = false _
|
911
|
+
})
|
912
|
+
|
913
|
+
Columns.Add(New DatabaseColumn("Quantity", Me) With { _
|
914
|
+
.IsPrimaryKey = false, _
|
915
|
+
.DataType = DbType.Int16, _
|
916
|
+
.IsNullable = false, _
|
917
|
+
.AutoIncrement = false, _
|
918
|
+
.IsForeignKey = false _
|
919
|
+
})
|
920
|
+
|
921
|
+
Columns.Add(New DatabaseColumn("Discount", Me) With { _
|
922
|
+
.IsPrimaryKey = false, _
|
923
|
+
.DataType = DbType.Single, _
|
924
|
+
.IsNullable = false, _
|
925
|
+
.AutoIncrement = false, _
|
926
|
+
.IsForeignKey = false _
|
927
|
+
})
|
928
|
+
|
929
|
+
|
930
|
+
End Sub
|
931
|
+
|
932
|
+
Public ReadOnly Property [OrderID] As IColumn
|
933
|
+
Get
|
934
|
+
Return Me.GetColumn("OrderID")
|
935
|
+
End Get
|
936
|
+
End Property
|
937
|
+
|
938
|
+
Public ReadOnly Property [ProductID] As IColumn
|
939
|
+
Get
|
940
|
+
Return Me.GetColumn("ProductID")
|
941
|
+
End Get
|
942
|
+
End Property
|
943
|
+
|
944
|
+
Public ReadOnly Property [UnitPrice] As IColumn
|
945
|
+
Get
|
946
|
+
Return Me.GetColumn("UnitPrice")
|
947
|
+
End Get
|
948
|
+
End Property
|
949
|
+
|
950
|
+
Public ReadOnly Property [Quantity] As IColumn
|
951
|
+
Get
|
952
|
+
Return Me.GetColumn("Quantity")
|
953
|
+
End Get
|
954
|
+
End Property
|
955
|
+
|
956
|
+
Public ReadOnly Property [Discount] As IColumn
|
957
|
+
Get
|
958
|
+
Return Me.GetColumn("Discount")
|
959
|
+
End Get
|
960
|
+
End Property
|
961
|
+
|
962
|
+
|
963
|
+
End Class
|
964
|
+
''' <summary>
|
965
|
+
''' Table: CustomerCustomerDemo
|
966
|
+
''' Primary Key: CustomerID
|
967
|
+
''' </summary>
|
968
|
+
|
969
|
+
Public Class CustomerCustomerDemoTable
|
970
|
+
Inherits DatabaseTable
|
971
|
+
|
972
|
+
Public Sub New(provider As IDataProvider)
|
973
|
+
MyBase.New("CustomerCustomerDemo",provider)
|
974
|
+
ClassName = "CustomerCustomerDemo"
|
975
|
+
SchemaName = "dbo"
|
976
|
+
|
977
|
+
Columns.Add(New DatabaseColumn("CustomerID", Me) With { _
|
978
|
+
.IsPrimaryKey = true, _
|
979
|
+
.DataType = DbType.String, _
|
980
|
+
.IsNullable = false, _
|
981
|
+
.AutoIncrement = false, _
|
982
|
+
.IsForeignKey = true _
|
983
|
+
})
|
984
|
+
|
985
|
+
Columns.Add(New DatabaseColumn("CustomerTypeID", Me) With { _
|
986
|
+
.IsPrimaryKey = false, _
|
987
|
+
.DataType = DbType.String, _
|
988
|
+
.IsNullable = false, _
|
989
|
+
.AutoIncrement = false, _
|
990
|
+
.IsForeignKey = true _
|
991
|
+
})
|
992
|
+
|
993
|
+
|
994
|
+
End Sub
|
995
|
+
|
996
|
+
Public ReadOnly Property [CustomerID] As IColumn
|
997
|
+
Get
|
998
|
+
Return Me.GetColumn("CustomerID")
|
999
|
+
End Get
|
1000
|
+
End Property
|
1001
|
+
|
1002
|
+
Public ReadOnly Property [CustomerTypeID] As IColumn
|
1003
|
+
Get
|
1004
|
+
Return Me.GetColumn("CustomerTypeID")
|
1005
|
+
End Get
|
1006
|
+
End Property
|
1007
|
+
|
1008
|
+
|
1009
|
+
End Class
|
1010
|
+
''' <summary>
|
1011
|
+
''' Table: CustomerDemographics
|
1012
|
+
''' Primary Key: CustomerTypeID
|
1013
|
+
''' </summary>
|
1014
|
+
|
1015
|
+
Public Class CustomerDemographicsTable
|
1016
|
+
Inherits DatabaseTable
|
1017
|
+
|
1018
|
+
Public Sub New(provider As IDataProvider)
|
1019
|
+
MyBase.New("CustomerDemographics",provider)
|
1020
|
+
ClassName = "CustomerDemographic"
|
1021
|
+
SchemaName = "dbo"
|
1022
|
+
|
1023
|
+
Columns.Add(New DatabaseColumn("CustomerTypeID", Me) With { _
|
1024
|
+
.IsPrimaryKey = true, _
|
1025
|
+
.DataType = DbType.String, _
|
1026
|
+
.IsNullable = false, _
|
1027
|
+
.AutoIncrement = false, _
|
1028
|
+
.IsForeignKey = true _
|
1029
|
+
})
|
1030
|
+
|
1031
|
+
Columns.Add(New DatabaseColumn("CustomerDesc", Me) With { _
|
1032
|
+
.IsPrimaryKey = false, _
|
1033
|
+
.DataType = DbType.String, _
|
1034
|
+
.IsNullable = true, _
|
1035
|
+
.AutoIncrement = false, _
|
1036
|
+
.IsForeignKey = false _
|
1037
|
+
})
|
1038
|
+
|
1039
|
+
|
1040
|
+
End Sub
|
1041
|
+
|
1042
|
+
Public ReadOnly Property [CustomerTypeID] As IColumn
|
1043
|
+
Get
|
1044
|
+
Return Me.GetColumn("CustomerTypeID")
|
1045
|
+
End Get
|
1046
|
+
End Property
|
1047
|
+
|
1048
|
+
Public ReadOnly Property [CustomerDesc] As IColumn
|
1049
|
+
Get
|
1050
|
+
Return Me.GetColumn("CustomerDesc")
|
1051
|
+
End Get
|
1052
|
+
End Property
|
1053
|
+
|
1054
|
+
|
1055
|
+
End Class
|
1056
|
+
''' <summary>
|
1057
|
+
''' Table: Region
|
1058
|
+
''' Primary Key: RegionID
|
1059
|
+
''' </summary>
|
1060
|
+
|
1061
|
+
Public Class RegionTable
|
1062
|
+
Inherits DatabaseTable
|
1063
|
+
|
1064
|
+
Public Sub New(provider As IDataProvider)
|
1065
|
+
MyBase.New("Region",provider)
|
1066
|
+
ClassName = "Region"
|
1067
|
+
SchemaName = "dbo"
|
1068
|
+
|
1069
|
+
Columns.Add(New DatabaseColumn("RegionID", Me) With { _
|
1070
|
+
.IsPrimaryKey = true, _
|
1071
|
+
.DataType = DbType.Int32, _
|
1072
|
+
.IsNullable = false, _
|
1073
|
+
.AutoIncrement = false, _
|
1074
|
+
.IsForeignKey = true _
|
1075
|
+
})
|
1076
|
+
|
1077
|
+
Columns.Add(New DatabaseColumn("RegionDescription", Me) With { _
|
1078
|
+
.IsPrimaryKey = false, _
|
1079
|
+
.DataType = DbType.String, _
|
1080
|
+
.IsNullable = false, _
|
1081
|
+
.AutoIncrement = false, _
|
1082
|
+
.IsForeignKey = false _
|
1083
|
+
})
|
1084
|
+
|
1085
|
+
|
1086
|
+
End Sub
|
1087
|
+
|
1088
|
+
Public ReadOnly Property [RegionID] As IColumn
|
1089
|
+
Get
|
1090
|
+
Return Me.GetColumn("RegionID")
|
1091
|
+
End Get
|
1092
|
+
End Property
|
1093
|
+
|
1094
|
+
Public ReadOnly Property [RegionDescription] As IColumn
|
1095
|
+
Get
|
1096
|
+
Return Me.GetColumn("RegionDescription")
|
1097
|
+
End Get
|
1098
|
+
End Property
|
1099
|
+
|
1100
|
+
|
1101
|
+
End Class
|
1102
|
+
''' <summary>
|
1103
|
+
''' Table: Territories
|
1104
|
+
''' Primary Key: TerritoryID
|
1105
|
+
''' </summary>
|
1106
|
+
|
1107
|
+
Public Class TerritoriesTable
|
1108
|
+
Inherits DatabaseTable
|
1109
|
+
|
1110
|
+
Public Sub New(provider As IDataProvider)
|
1111
|
+
MyBase.New("Territories",provider)
|
1112
|
+
ClassName = "Territory"
|
1113
|
+
SchemaName = "dbo"
|
1114
|
+
|
1115
|
+
Columns.Add(New DatabaseColumn("TerritoryID", Me) With { _
|
1116
|
+
.IsPrimaryKey = true, _
|
1117
|
+
.DataType = DbType.String, _
|
1118
|
+
.IsNullable = false, _
|
1119
|
+
.AutoIncrement = false, _
|
1120
|
+
.IsForeignKey = true _
|
1121
|
+
})
|
1122
|
+
|
1123
|
+
Columns.Add(New DatabaseColumn("TerritoryDescription", Me) With { _
|
1124
|
+
.IsPrimaryKey = false, _
|
1125
|
+
.DataType = DbType.String, _
|
1126
|
+
.IsNullable = false, _
|
1127
|
+
.AutoIncrement = false, _
|
1128
|
+
.IsForeignKey = false _
|
1129
|
+
})
|
1130
|
+
|
1131
|
+
Columns.Add(New DatabaseColumn("RegionID", Me) With { _
|
1132
|
+
.IsPrimaryKey = false, _
|
1133
|
+
.DataType = DbType.Int32, _
|
1134
|
+
.IsNullable = false, _
|
1135
|
+
.AutoIncrement = false, _
|
1136
|
+
.IsForeignKey = true _
|
1137
|
+
})
|
1138
|
+
|
1139
|
+
|
1140
|
+
End Sub
|
1141
|
+
|
1142
|
+
Public ReadOnly Property [TerritoryID] As IColumn
|
1143
|
+
Get
|
1144
|
+
Return Me.GetColumn("TerritoryID")
|
1145
|
+
End Get
|
1146
|
+
End Property
|
1147
|
+
|
1148
|
+
Public ReadOnly Property [TerritoryDescription] As IColumn
|
1149
|
+
Get
|
1150
|
+
Return Me.GetColumn("TerritoryDescription")
|
1151
|
+
End Get
|
1152
|
+
End Property
|
1153
|
+
|
1154
|
+
Public ReadOnly Property [RegionID] As IColumn
|
1155
|
+
Get
|
1156
|
+
Return Me.GetColumn("RegionID")
|
1157
|
+
End Get
|
1158
|
+
End Property
|
1159
|
+
|
1160
|
+
|
1161
|
+
End Class
|
1162
|
+
''' <summary>
|
1163
|
+
''' Table: EmployeeTerritories
|
1164
|
+
''' Primary Key: EmployeeID
|
1165
|
+
''' </summary>
|
1166
|
+
|
1167
|
+
Public Class EmployeeTerritoriesTable
|
1168
|
+
Inherits DatabaseTable
|
1169
|
+
|
1170
|
+
Public Sub New(provider As IDataProvider)
|
1171
|
+
MyBase.New("EmployeeTerritories",provider)
|
1172
|
+
ClassName = "EmployeeTerritory"
|
1173
|
+
SchemaName = "dbo"
|
1174
|
+
|
1175
|
+
Columns.Add(New DatabaseColumn("EmployeeID", Me) With { _
|
1176
|
+
.IsPrimaryKey = true, _
|
1177
|
+
.DataType = DbType.Int32, _
|
1178
|
+
.IsNullable = false, _
|
1179
|
+
.AutoIncrement = false, _
|
1180
|
+
.IsForeignKey = true _
|
1181
|
+
})
|
1182
|
+
|
1183
|
+
Columns.Add(New DatabaseColumn("TerritoryID", Me) With { _
|
1184
|
+
.IsPrimaryKey = false, _
|
1185
|
+
.DataType = DbType.String, _
|
1186
|
+
.IsNullable = false, _
|
1187
|
+
.AutoIncrement = false, _
|
1188
|
+
.IsForeignKey = true _
|
1189
|
+
})
|
1190
|
+
|
1191
|
+
|
1192
|
+
End Sub
|
1193
|
+
|
1194
|
+
Public ReadOnly Property [EmployeeID] As IColumn
|
1195
|
+
Get
|
1196
|
+
Return Me.GetColumn("EmployeeID")
|
1197
|
+
End Get
|
1198
|
+
End Property
|
1199
|
+
|
1200
|
+
Public ReadOnly Property [TerritoryID] As IColumn
|
1201
|
+
Get
|
1202
|
+
Return Me.GetColumn("TerritoryID")
|
1203
|
+
End Get
|
1204
|
+
End Property
|
1205
|
+
|
1206
|
+
|
1207
|
+
End Class
|
1208
|
+
''' <summary>
|
1209
|
+
''' Table: Employees
|
1210
|
+
''' Primary Key: EmployeeID
|
1211
|
+
''' </summary>
|
1212
|
+
|
1213
|
+
Public Class EmployeesTable
|
1214
|
+
Inherits DatabaseTable
|
1215
|
+
|
1216
|
+
Public Sub New(provider As IDataProvider)
|
1217
|
+
MyBase.New("Employees",provider)
|
1218
|
+
ClassName = "Employee"
|
1219
|
+
SchemaName = "dbo"
|
1220
|
+
|
1221
|
+
Columns.Add(New DatabaseColumn("EmployeeID", Me) With { _
|
1222
|
+
.IsPrimaryKey = true, _
|
1223
|
+
.DataType = DbType.Int32, _
|
1224
|
+
.IsNullable = false, _
|
1225
|
+
.AutoIncrement = true, _
|
1226
|
+
.IsForeignKey = true _
|
1227
|
+
})
|
1228
|
+
|
1229
|
+
Columns.Add(New DatabaseColumn("LastName", Me) With { _
|
1230
|
+
.IsPrimaryKey = false, _
|
1231
|
+
.DataType = DbType.String, _
|
1232
|
+
.IsNullable = false, _
|
1233
|
+
.AutoIncrement = false, _
|
1234
|
+
.IsForeignKey = false _
|
1235
|
+
})
|
1236
|
+
|
1237
|
+
Columns.Add(New DatabaseColumn("FirstName", Me) With { _
|
1238
|
+
.IsPrimaryKey = false, _
|
1239
|
+
.DataType = DbType.String, _
|
1240
|
+
.IsNullable = false, _
|
1241
|
+
.AutoIncrement = false, _
|
1242
|
+
.IsForeignKey = false _
|
1243
|
+
})
|
1244
|
+
|
1245
|
+
Columns.Add(New DatabaseColumn("Title", Me) With { _
|
1246
|
+
.IsPrimaryKey = false, _
|
1247
|
+
.DataType = DbType.String, _
|
1248
|
+
.IsNullable = true, _
|
1249
|
+
.AutoIncrement = false, _
|
1250
|
+
.IsForeignKey = false _
|
1251
|
+
})
|
1252
|
+
|
1253
|
+
Columns.Add(New DatabaseColumn("TitleOfCourtesy", Me) With { _
|
1254
|
+
.IsPrimaryKey = false, _
|
1255
|
+
.DataType = DbType.String, _
|
1256
|
+
.IsNullable = true, _
|
1257
|
+
.AutoIncrement = false, _
|
1258
|
+
.IsForeignKey = false _
|
1259
|
+
})
|
1260
|
+
|
1261
|
+
Columns.Add(New DatabaseColumn("BirthDate", Me) With { _
|
1262
|
+
.IsPrimaryKey = false, _
|
1263
|
+
.DataType = DbType.DateTime, _
|
1264
|
+
.IsNullable = true, _
|
1265
|
+
.AutoIncrement = false, _
|
1266
|
+
.IsForeignKey = false _
|
1267
|
+
})
|
1268
|
+
|
1269
|
+
Columns.Add(New DatabaseColumn("HireDate", Me) With { _
|
1270
|
+
.IsPrimaryKey = false, _
|
1271
|
+
.DataType = DbType.DateTime, _
|
1272
|
+
.IsNullable = true, _
|
1273
|
+
.AutoIncrement = false, _
|
1274
|
+
.IsForeignKey = false _
|
1275
|
+
})
|
1276
|
+
|
1277
|
+
Columns.Add(New DatabaseColumn("Address", Me) With { _
|
1278
|
+
.IsPrimaryKey = false, _
|
1279
|
+
.DataType = DbType.String, _
|
1280
|
+
.IsNullable = true, _
|
1281
|
+
.AutoIncrement = false, _
|
1282
|
+
.IsForeignKey = false _
|
1283
|
+
})
|
1284
|
+
|
1285
|
+
Columns.Add(New DatabaseColumn("City", Me) With { _
|
1286
|
+
.IsPrimaryKey = false, _
|
1287
|
+
.DataType = DbType.String, _
|
1288
|
+
.IsNullable = true, _
|
1289
|
+
.AutoIncrement = false, _
|
1290
|
+
.IsForeignKey = false _
|
1291
|
+
})
|
1292
|
+
|
1293
|
+
Columns.Add(New DatabaseColumn("Region", Me) With { _
|
1294
|
+
.IsPrimaryKey = false, _
|
1295
|
+
.DataType = DbType.String, _
|
1296
|
+
.IsNullable = true, _
|
1297
|
+
.AutoIncrement = false, _
|
1298
|
+
.IsForeignKey = false _
|
1299
|
+
})
|
1300
|
+
|
1301
|
+
Columns.Add(New DatabaseColumn("PostalCode", Me) With { _
|
1302
|
+
.IsPrimaryKey = false, _
|
1303
|
+
.DataType = DbType.String, _
|
1304
|
+
.IsNullable = true, _
|
1305
|
+
.AutoIncrement = false, _
|
1306
|
+
.IsForeignKey = false _
|
1307
|
+
})
|
1308
|
+
|
1309
|
+
Columns.Add(New DatabaseColumn("Country", Me) With { _
|
1310
|
+
.IsPrimaryKey = false, _
|
1311
|
+
.DataType = DbType.String, _
|
1312
|
+
.IsNullable = true, _
|
1313
|
+
.AutoIncrement = false, _
|
1314
|
+
.IsForeignKey = false _
|
1315
|
+
})
|
1316
|
+
|
1317
|
+
Columns.Add(New DatabaseColumn("HomePhone", Me) With { _
|
1318
|
+
.IsPrimaryKey = false, _
|
1319
|
+
.DataType = DbType.String, _
|
1320
|
+
.IsNullable = true, _
|
1321
|
+
.AutoIncrement = false, _
|
1322
|
+
.IsForeignKey = false _
|
1323
|
+
})
|
1324
|
+
|
1325
|
+
Columns.Add(New DatabaseColumn("Extension", Me) With { _
|
1326
|
+
.IsPrimaryKey = false, _
|
1327
|
+
.DataType = DbType.String, _
|
1328
|
+
.IsNullable = true, _
|
1329
|
+
.AutoIncrement = false, _
|
1330
|
+
.IsForeignKey = false _
|
1331
|
+
})
|
1332
|
+
|
1333
|
+
Columns.Add(New DatabaseColumn("Photo", Me) With { _
|
1334
|
+
.IsPrimaryKey = false, _
|
1335
|
+
.DataType = DbType.Binary, _
|
1336
|
+
.IsNullable = true, _
|
1337
|
+
.AutoIncrement = false, _
|
1338
|
+
.IsForeignKey = false _
|
1339
|
+
})
|
1340
|
+
|
1341
|
+
Columns.Add(New DatabaseColumn("Notes", Me) With { _
|
1342
|
+
.IsPrimaryKey = false, _
|
1343
|
+
.DataType = DbType.String, _
|
1344
|
+
.IsNullable = true, _
|
1345
|
+
.AutoIncrement = false, _
|
1346
|
+
.IsForeignKey = false _
|
1347
|
+
})
|
1348
|
+
|
1349
|
+
Columns.Add(New DatabaseColumn("ReportsTo", Me) With { _
|
1350
|
+
.IsPrimaryKey = false, _
|
1351
|
+
.DataType = DbType.Int32, _
|
1352
|
+
.IsNullable = true, _
|
1353
|
+
.AutoIncrement = false, _
|
1354
|
+
.IsForeignKey = true _
|
1355
|
+
})
|
1356
|
+
|
1357
|
+
Columns.Add(New DatabaseColumn("PhotoPath", Me) With { _
|
1358
|
+
.IsPrimaryKey = false, _
|
1359
|
+
.DataType = DbType.String, _
|
1360
|
+
.IsNullable = true, _
|
1361
|
+
.AutoIncrement = false, _
|
1362
|
+
.IsForeignKey = false _
|
1363
|
+
})
|
1364
|
+
|
1365
|
+
|
1366
|
+
End Sub
|
1367
|
+
|
1368
|
+
Public ReadOnly Property [EmployeeID] As IColumn
|
1369
|
+
Get
|
1370
|
+
Return Me.GetColumn("EmployeeID")
|
1371
|
+
End Get
|
1372
|
+
End Property
|
1373
|
+
|
1374
|
+
Public ReadOnly Property [LastName] As IColumn
|
1375
|
+
Get
|
1376
|
+
Return Me.GetColumn("LastName")
|
1377
|
+
End Get
|
1378
|
+
End Property
|
1379
|
+
|
1380
|
+
Public ReadOnly Property [FirstName] As IColumn
|
1381
|
+
Get
|
1382
|
+
Return Me.GetColumn("FirstName")
|
1383
|
+
End Get
|
1384
|
+
End Property
|
1385
|
+
|
1386
|
+
Public ReadOnly Property [Title] As IColumn
|
1387
|
+
Get
|
1388
|
+
Return Me.GetColumn("Title")
|
1389
|
+
End Get
|
1390
|
+
End Property
|
1391
|
+
|
1392
|
+
Public ReadOnly Property [TitleOfCourtesy] As IColumn
|
1393
|
+
Get
|
1394
|
+
Return Me.GetColumn("TitleOfCourtesy")
|
1395
|
+
End Get
|
1396
|
+
End Property
|
1397
|
+
|
1398
|
+
Public ReadOnly Property [BirthDate] As IColumn
|
1399
|
+
Get
|
1400
|
+
Return Me.GetColumn("BirthDate")
|
1401
|
+
End Get
|
1402
|
+
End Property
|
1403
|
+
|
1404
|
+
Public ReadOnly Property [HireDate] As IColumn
|
1405
|
+
Get
|
1406
|
+
Return Me.GetColumn("HireDate")
|
1407
|
+
End Get
|
1408
|
+
End Property
|
1409
|
+
|
1410
|
+
Public ReadOnly Property [Address] As IColumn
|
1411
|
+
Get
|
1412
|
+
Return Me.GetColumn("Address")
|
1413
|
+
End Get
|
1414
|
+
End Property
|
1415
|
+
|
1416
|
+
Public ReadOnly Property [City] As IColumn
|
1417
|
+
Get
|
1418
|
+
Return Me.GetColumn("City")
|
1419
|
+
End Get
|
1420
|
+
End Property
|
1421
|
+
|
1422
|
+
Public ReadOnly Property [Region] As IColumn
|
1423
|
+
Get
|
1424
|
+
Return Me.GetColumn("Region")
|
1425
|
+
End Get
|
1426
|
+
End Property
|
1427
|
+
|
1428
|
+
Public ReadOnly Property [PostalCode] As IColumn
|
1429
|
+
Get
|
1430
|
+
Return Me.GetColumn("PostalCode")
|
1431
|
+
End Get
|
1432
|
+
End Property
|
1433
|
+
|
1434
|
+
Public ReadOnly Property [Country] As IColumn
|
1435
|
+
Get
|
1436
|
+
Return Me.GetColumn("Country")
|
1437
|
+
End Get
|
1438
|
+
End Property
|
1439
|
+
|
1440
|
+
Public ReadOnly Property [HomePhone] As IColumn
|
1441
|
+
Get
|
1442
|
+
Return Me.GetColumn("HomePhone")
|
1443
|
+
End Get
|
1444
|
+
End Property
|
1445
|
+
|
1446
|
+
Public ReadOnly Property [Extension] As IColumn
|
1447
|
+
Get
|
1448
|
+
Return Me.GetColumn("Extension")
|
1449
|
+
End Get
|
1450
|
+
End Property
|
1451
|
+
|
1452
|
+
Public ReadOnly Property [Photo] As IColumn
|
1453
|
+
Get
|
1454
|
+
Return Me.GetColumn("Photo")
|
1455
|
+
End Get
|
1456
|
+
End Property
|
1457
|
+
|
1458
|
+
Public ReadOnly Property [Notes] As IColumn
|
1459
|
+
Get
|
1460
|
+
Return Me.GetColumn("Notes")
|
1461
|
+
End Get
|
1462
|
+
End Property
|
1463
|
+
|
1464
|
+
Public ReadOnly Property [ReportsTo] As IColumn
|
1465
|
+
Get
|
1466
|
+
Return Me.GetColumn("ReportsTo")
|
1467
|
+
End Get
|
1468
|
+
End Property
|
1469
|
+
|
1470
|
+
Public ReadOnly Property [PhotoPath] As IColumn
|
1471
|
+
Get
|
1472
|
+
Return Me.GetColumn("PhotoPath")
|
1473
|
+
End Get
|
1474
|
+
End Property
|
1475
|
+
|
1476
|
+
|
1477
|
+
End Class
|
1478
|
+
End NameSpace
|