forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.cs
52 lines (45 loc) · 1.02 KB
/
User.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
using System.Collections;
using System.Collections.Generic;
using Iesi.Collections.Generic;
namespace NHibernate.Test.Extralazy
{
public class User
{
private string name;
private string password;
private IDictionary session = new Hashtable();
private ISet<Document> documents = new HashedSet<Document>();
private ISet<Photo> photos = new HashedSet<Photo>();
protected User() {}
public User(string name, string password)
{
this.name = name;
this.password = password;
}
public virtual string Name
{
get { return name; }
set { name = value; }
}
public virtual string Password
{
get { return password; }
set { password = value; }
}
public virtual IDictionary Session
{
get { return session; }
set { session = value; }
}
public virtual ISet<Document> Documents
{
get { return documents; }
set { documents = value; }
}
public virtual ISet<Photo> Photos
{
get { return photos; }
set { photos = value; }
}
}
}