CloneSet1343


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7210.992non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1791
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
26107
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
Clone Instance
1
Line Count
7
Source Line
91
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        using (ISession s = OpenSession())
                        using (ITransaction tx = s.BeginTransaction())
                        {
                                resultCount =
                                        s.CreateQuery("select ai.Name, count(*) from AnotherItem ai group by ai.Name").SetCacheable(true).SetCacheRegion(
                                                "Statistics").List().Count;
                                tx.Commit();
                        }


Clone Instance
2
Line Count
6
Source Line
107
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        using (ISession s = OpenSession())
                        using (ITransaction tx = s.BeginTransaction())
                        {
                                secondResultCount = s.CreateQuery("select ai.Name, count(*) from AnotherItem ai group by ai.Name").
                                         SetCacheable(true).SetCacheRegion("Statistics").List().Count;
                                tx.Commit();
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

using (ISession s = OpenSession())
   using (ITransaction tx = s.BeginTransaction())
   {
       [[#variable2bff3700]]= s.CreateQuery("select ai.Name, count(*) from AnotherItem ai group by ai.Name").SetCacheable(true).SetCacheRegion("Statistics").List().Count;
      tx.Commit();
   }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2bff3700]]
resultCount 
12[[#2bff3700]]
secondResultCount