CloneSet731


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.995non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11428
src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs
21345
src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs
Clone Instance
1
Line Count
14
Source Line
28
Source File
src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs

                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                a = s.Get < A > (savedId);

                                IStatistics statistics = sessions.Statistics;
                                statistics.Clear();

                                Assert.IsNotNull(a.B); // an instance of B was created
                                s.Flush();
                                t.Commit();

                                // since we don't change anyproperties in a.B there are no dirty entity to commit
                                Assert.AreEqual(0, statistics.PrepareStatementCount);
                        }


Clone Instance
2
Line Count
13
Source Line
45
Source File
src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs

                        // using proxy
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction())
                        {
                                a = s.Load < A > (savedId);

                                IStatistics statistics = sessions.Statistics;
                                statistics.Clear();

                                Assert.IsNotNull(a.B); // an instance of B was created
                                s.Flush();
                                t.Commit();

                                Assert.AreEqual(0, statistics.PrepareStatementCount);
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

// using proxy
using (ISession s = OpenSession())
   using (ITransaction t = s.BeginTransaction())
   {
      a = s. [[#variable68427aa0]]< A > (savedId);
      IStatistics statistics = sessions.Statistics;
      statistics.Clear();
      Assert.IsNotNull(a.B); // an instance of B was created
      s.Flush();
      t.Commit();
      // since we don't change anyproperties in a.B there are no dirty entity to commit
      Assert.AreEqual(0, statistics.PrepareStatementCount);
   }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#68427aa0]]
Get 
12[[#68427aa0]]
Load