Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 1 | 0.992 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 91 | src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs |
2 | 6 | 107 | 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(); } |
| ||||
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(); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2bff3700]] | resultCount |
1 | 2 | [[#2bff3700]] | secondResultCount |