CloneSet359


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.991statement_list[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113347
src/NHibernate.Test/Legacy/MultiTableTest.cs
213462
src/NHibernate.Test/Legacy/MultiTableTest.cs
Clone Instance
1
Line Count
13
Source Line
347
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

                        multi = (Multi) s.Load( typeof(Top), mid, LockMode.Upgrade);
                        simp = (Top) s.Load( typeof(Top), sid);
                        s.Lock(simp, LockMode.UpgradeNoWait);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        s.Update(multi, mid);
                        s.Delete(multi);
                        Assert.AreEqual(2, s.Delete("from s in class Top"));
                        t.Commit();
                        s.Close();


Clone Instance
2
Line Count
13
Source Line
462
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

                        multi = (Multi) s.Load( typeof(Top), multiId, LockMode.Upgrade);
                        simp = (Top) s.Load( typeof(Top), simpId);
                        s.Lock(simp, LockMode.UpgradeNoWait);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        s.Update(multi, multiId);
                        s.Delete(multi);
                        Assert.AreEqual(2, s.Delete("from s in class Top"));
                        t.Commit();
                        s.Close();


Clone AbstractionParameter Count: 2Parameter Bindings

multi = (Multi)s.Load( typeof(Top), [[#variable673b3800]], LockMode.Upgrade);
simp = (Top)s.Load( typeof(Top), [[#variable66f31f20]]);
s.Lock(simp, LockMode.UpgradeNoWait);
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
s.Update(multi, [[#variable673b3800]]);
s.Delete(multi);
Assert.AreEqual(2, s.Delete("from s in class Top"));
t.Commit();
s.Close();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#673b3800]]
multiId 
12[[#673b3800]]
mid 
21[[#66f31f20]]
simpId 
22[[#66f31f20]]
sid