-
Notifications
You must be signed in to change notification settings - Fork 924
/
Simple.cs
70 lines (60 loc) · 1.09 KB
/
Simple.cs
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
using System;
namespace NHibernate.DomainModel
{
[Serializable]
public class Simple
{
private string name;
private string address;
private int count;
// initializing to a value that is ms independent because of MsSql millisecond
// accurracy issues
private DateTime date = new DateTime(2004, 01, 01, 12, 00, 00, 00);
private Simple other;
private float pay;
public Simple(int c)
{
count = c;
}
public Simple()
{
}
public void Init()
{
name = "Someone with along name";
address = "1234 some street, some city, victoria, 3000, austaya";
count = 69;
date = DateTime.Now;
}
public string Name
{
get { return name; }
set { name = value; }
}
public string Address
{
get { return address; }
set { address = value; }
}
public int Count
{
get { return count; }
set { count = value; }
}
public DateTime Date
{
get { return date; }
set { date = value; }
}
public Simple Other
{
get { return other; }
set { other = value; }
}
public float Pay
{
get { return pay; }
set { pay = value; }
}
}
}