This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
/
Category.vb
75 lines (64 loc) · 1.64 KB
/
Category.vb
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
Imports Microsoft.VisualBasic
Imports System
Imports DevExpress.Xpo
Namespace Contacts.Data
Public Class Category
Inherits XPObject
Public Sub New()
MyBase.New()
' This constructor is used when an object is loaded from a persistent storage.
' Do not place any code here.
End Sub
Public Sub New(ByVal session As Session)
MyBase.New(session)
' This constructor is used when an object is loaded from a persistent storage.
' Do not place any code here.
End Sub
Public Overrides Sub AfterConstruction()
MyBase.AfterConstruction()
' Place here your initialization code.
End Sub
Private _Name As String
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
SetPropertyValue("Name", _Name, value)
End Set
End Property
Private _Description As String
Public Property Description() As String
Get
Return _Description
End Get
Set(ByVal value As String)
SetPropertyValue("Description", _Description, value)
End Set
End Property
Private _Added As DateTime
Public Property Added() As DateTime
Get
Return _Added
End Get
Set(ByVal value As DateTime)
SetPropertyValue("Added", _Added, value)
End Set
End Property
Private _Modified As DateTime
Public Property Modified() As DateTime
Get
Return _Modified
End Get
Set(ByVal value As DateTime)
SetPropertyValue("Modified", _Modified, value)
End Set
End Property
<Association("PersonCategory")> _
Public ReadOnly Property Persons() As XPCollection(Of Person)
Get
Return GetCollection(Of Person)("Persons")
End Get
End Property
End Class
End Namespace