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.994 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 199 | src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs |
2 | 7 | 220 | src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs |
| ||||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s.CreateQuery(queryString).SetCacheable(true).List(); var i = new Item { Name = "widget" } ; savedId = s.Save(i); tx.Commit(); } |
| ||||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s.CreateQuery(queryString).SetCacheable(true).List(); var i = new AnotherItem { Name = "widget" } ; savedId = s.Save(i); tx.Commit(); } |
| |||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s.CreateQuery(queryString).SetCacheable(true).List(); var i = new [[#variable57ad72a0]]{ Name = "widget" } ; savedId = s.Save(i); tx.Commit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57ad72a0]] | Item |
1 | 2 | [[#57ad72a0]] | AnotherItem |