forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThing.cs
47 lines (40 loc) · 784 Bytes
/
Thing.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
using System;
namespace NHibernate.Test.VersionTest
{
public class Thing
{
private string description;
private Person person;
private int version;
private string longDescription;
protected Thing()
{
}
public Thing(String description, Person person)
{
this.description = description;
this.person = person;
person.Things.Add(this);
}
public virtual string Description
{
get { return description; }
set { description = value; }
}
public virtual Person Person
{
get { return person; }
set { person = value; }
}
public virtual int Version
{
get { return version; }
set { version = value; }
}
public virtual string LongDescription
{
get { return longDescription; }
set { longDescription = value; }
}
}
}