forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOuter.cs
47 lines (37 loc) · 746 Bytes
/
Outer.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.DomainModel
{
/// <summary>
/// Summary description for Outer.
/// </summary>
[Serializable]
public class Outer
{
private OuterKey _id;
private string _bubu;
public OuterKey Id
{
get { return _id; }
set { _id = value; }
}
public string Bubu
{
get { return _bubu; }
set { _bubu = value; }
}
#region System.Object Members
public override bool Equals(object obj)
{
if (this == obj) return true;
Outer rhs = obj as Outer;
if (rhs == null) return false;
if (_id != null ? !_id.Equals(rhs.Id) : rhs.Id != null) return false;
return true;
}
public override int GetHashCode()
{
return (_id != null ? _id.GetHashCode() : 0);
}
#endregion
}
}