forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParent.cs
50 lines (43 loc) · 859 Bytes
/
Parent.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
using System;
using System.Collections.Generic;
namespace NHibernate.DomainModel.NHSpecific
{
/// <summary>
/// Summary description for Parent.
/// </summary>
public class Parent
{
private int _id;
private string _adultName;
private ISet<object> _children;
private ISet<Parent> _adultFriends;
public Parent()
{
_adultFriends = new SortedSet<Parent>(new ParentComparer());
}
public int Id
{
get { return _id; }
set { _id = value; }
}
public string AdultName
{
get { return _adultName; }
set { _adultName = value; }
}
public ISet<object> Children
{
get { return _children; }
set { _children = value; }
}
public ISet<Parent> AdultFriends
{
get { return _adultFriends; }
set { _adultFriends = value; }
}
public void AddFriend(Parent friend)
{
_adultFriends.Add(friend);
}
}
}