CloneSet528


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11572
src/NHibernate.Test/GenericTest/IdBagGeneric/IdBagGenericFixture.cs
215169
src/NHibernate.Test/GenericTest/MapGeneric/MapGenericFixture.cs
Clone Instance
1
Line Count
15
Source Line
72
Source File
src/NHibernate.Test/GenericTest/IdBagGeneric/IdBagGenericFixture.cs

                        A copiedA;
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                copiedA = (A) s.SaveOrUpdateCopy(a);
                                t.Commit();
                        }

                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                A loadedA = s.Get < A > (copiedA.Id);
                                Assert.IsNotNull( loadedA);
                                s.Delete( loadedA);
                                t.Commit();
                        }


Clone Instance
2
Line Count
15
Source Line
169
Source File
src/NHibernate.Test/GenericTest/MapGeneric/MapGenericFixture.cs

                        A copiedA;
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                copiedA = (A) s.SaveOrUpdateCopy( a);
                                t.Commit();
                        }

                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                A loadedA = s.Get < A > ( copiedA.Id);
                                Assert.IsNotNull( loadedA);
                                s.Delete( loadedA);
                                t.Commit();
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

A copiedA;
using (ISession s = OpenSession())
   using (ITransaction t = s.BeginTransaction())
   {
      copiedA = (A)s.SaveOrUpdateCopy(a);
      t.Commit();
   }
using (ISession s = OpenSession())
   using (ITransaction t = s.BeginTransaction())
   {
      A loadedA = s.Get < A > (copiedA.Id);
      Assert.IsNotNull(loadedA);
      s.Delete(loadedA);
      t.Commit();
   }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None