Skip to content

Commit c2b5b0a

Browse files
authored
NH-3985 - Fix for subsequent child sessions being returned in dispose
1 parent fc1c256 commit c2b5b0a

File tree

1 file changed

+0
-35
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH3985

1 file changed

+0
-35
lines changed

src/NHibernate.Test/NHSpecificTest/NH3985/Entity.cs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,7 @@ namespace NHibernate.Test.NHSpecificTest.NH3985
44
{
55
public partial class Process
66
{
7-
#region Extensibility Method Definitions
8-
9-
public override bool Equals(object obj)
10-
{
11-
Process toCompare = obj as Process;
12-
if (toCompare == null)
13-
{
14-
return false;
15-
}
16-
17-
if (Object.Equals(this.ProcessID, default(long)) &&
18-
Object.Equals(toCompare.ProcessID, default(long)))
19-
return ReferenceEquals(this, toCompare);
20-
21-
if (!Object.Equals(this.ProcessID, toCompare.ProcessID))
22-
return false;
23-
24-
return true;
25-
}
26-
27-
public override int GetHashCode()
28-
{
29-
int hashCode = 13;
30-
31-
// on transient objects, use the basic GetHashCode()
32-
if (Object.Equals(this.ProcessID, default(long)))
33-
return base.GetHashCode();
34-
35-
hashCode = (hashCode * 7) + ProcessID.GetHashCode();
36-
return hashCode;
37-
}
38-
39-
#endregion
40-
417
public virtual Guid ProcessID { get; set; }
42-
438
public virtual string Name { get; set; }
449
}
4510
}

0 commit comments

Comments
 (0)