forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContained.cs
56 lines (46 loc) · 990 Bytes
/
Contained.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
using System;
using System.Collections.Generic;
namespace NHibernate.DomainModel
{
/// <summary>
/// Summary description for Contained.
/// </summary>
public class Contained
{
private Container _container;
private long _id;
private IList<Container> _bag = new List<Container>();
private IList<Container> _lazyBag = new List<Container>();
# region object overrides
public override bool Equals(object obj)
{
if (obj == null) return false;
return _id == ((Contained) obj).Id;
}
public override int GetHashCode()
{
return _id.GetHashCode();
}
#endregion
public virtual Container Container
{
get { return _container; }
set { _container = value; }
}
public virtual long Id
{
get { return _id; }
set { _id = value; }
}
public virtual IList<Container> Bag
{
get { return _bag; }
set { _bag = value; }
}
public virtual IList<Container> LazyBag
{
get { return _lazyBag; }
set { _lazyBag = value; }
}
}
}