Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 2 | 0.984 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 19 | src/NHibernate.Test/BulkManipulation/HQLBulkOperations.cs |
2 | 6 | 27 | src/NHibernate.Test/BulkManipulation/HQLBulkOperations.cs |
3 | 5 | 38 | src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs |
| ||||
using ( var s = OpenSession()) using ( var tx = s.BeginTransaction()) { Assert.That(s.CreateQuery("delete from SimpleClass where Description = 'simple2'").ExecuteUpdate(), Is.EqualTo(1)); tx.Commit(); } |
| ||||
using ( var s = OpenSession()) using ( var tx = s.BeginTransaction()) { Assert.That(s.CreateQuery("delete from SimpleClass").ExecuteUpdate(), Is.EqualTo(1)); tx.Commit(); } |
| ||||
using ( var s = OpenSession()) using ( var tx = s.BeginTransaction()) { Assert.That(s.CreateSQLQuery("delete from Book").ExecuteUpdate(), Is.EqualTo(1)); tx.Commit(); } |
| |||
using ( var s = OpenSession()) using ( var tx = s.BeginTransaction()) { Assert.That(s. [[#variable5eb10bc0]]( [[#variable5eb10b60]]).ExecuteUpdate(), Is.EqualTo(1)); tx.Commit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5eb10bc0]] | CreateQuery |
1 | 2 | [[#5eb10bc0]] | CreateSQLQuery |
1 | 3 | [[#5eb10bc0]] | CreateQuery |
2 | 1 | [[#5eb10b60]] | "delete from SimpleClass where Description = 'simple2'" |
2 | 2 | [[#5eb10b60]] | "delete from Book" |
2 | 3 | [[#5eb10b60]] | "delete from SimpleClass" |