forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathM.cs
45 lines (39 loc) · 718 Bytes
/
M.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
using System;
using System.Collections.Generic;
namespace NHibernate.DomainModel
{
/// <summary>
/// Summary description for M.
/// </summary>
public class M
{
private long uniqueSequence;
protected ISet<N> children;
public M()
{
children = new HashSet<N>();
}
public long UniqueSequence
{
get { return uniqueSequence; }
set { uniqueSequence = value; }
}
public ISet<N> Children
{
get { return children; }
set { children = value; }
}
public void AddChildren(N pChildren)
{
pChildren.Parent = this;
children.Add(pChildren);
}
public void RemoveChildren(N pChildren)
{
if (children.Contains(pChildren))
{
children.Remove(pChildren);
}
}
}
}