Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 13 | 3 | 0.961 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 19 | src/NHibernate.Test/NHSpecificTest/NH1291AnonExample/NH1291AnonExampleFixture.cs |
2 | 11 | 68 | src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs |
3 | 7 | 126 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs |
4 | 7 | 135 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs |
5 | 7 | 17 | src/NHibernate.Test/NHSpecificTest/NH1611OneToOneIdentity/NH1611OneToOneIdentityFixture.cs |
6 | 7 | 322 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
7 | 7 | 335 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
8 | 7 | 41 | src/NHibernate.Test/NHSpecificTest/NH1617/Fixture.cs |
9 | 7 | 45 | src/NHibernate.Test/NHSpecificTest/NH1694/Fixture.cs |
10 | 7 | 32 | src/NHibernate.Test/NHSpecificTest/NH1868/Fixture.cs |
11 | 7 | 31 | src/NHibernate.Test/NHSpecificTest/NH1927/Fixture.cs |
12 | 7 | 46 | src/NHibernate.Test/NHSpecificTest/NH2009/Fixture.cs |
13 | 7 | 42 | src/NHibernate.Test/NHSpecificTest/NH2011/Fixture.cs |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Person"); session.Delete("from Home"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { //delete empolyee and related orders session.Delete("from Employee ee where ee.PostalCode = '66666'"); //delete order not related to employee session.Delete("from Order oo where oo.ShipCountry = 'Deadville'"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete(" from ProjectWithOneList"); session.Delete( "from Scenario"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete( "from Project"); session.Delete( "from Scenario"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Adjunct"); session.Delete("from Primary"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Person"); session.Delete("from Country"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from City"); session.Delete("from Country"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tran = session.BeginTransaction()) { session.Delete("from Order"); session.Delete("from User"); tran.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tran = session.BeginTransaction()) { session.Delete("from Orders"); session.Delete("from User"); tran.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Category"); session.Delete("from Package"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Invoice"); session.Delete("from Customer"); tx.Commit(); } } |
| ||||
//using (ISession session = OpenSession()) //{ // var user = session.Get<BlogPost>(savedBlogPost.ID); //} using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from User"); session.Delete("from BlogPost"); tx.Commit(); } } |
| ||||
using (ISession session = OpenSession()) { using (ITransaction tx = session.BeginTransaction()) { session.Delete("from Order"); session.Delete("from Country"); tx.Commit(); } } |
| |||
//using (ISession session = OpenSession()) //{ // var user = session.Get<BlogPost>(savedBlogPost.ID); //} using (ISession session = OpenSession()) { using (ITransaction [[#variable6eb71420]]= session.BeginTransaction()) { //delete empolyee and related orders session.Delete( [[#variable6eb71380]]); //delete order not related to employee session.Delete( [[#variable6eb710a0]]); [[#variable6eb71420]].Commit(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6eb71420]] | tx |
1 | 2 | [[#6eb71420]] | tx |
1 | 3 | [[#6eb71420]] | tx |
1 | 4 | [[#6eb71420]] | tx |
1 | 5 | [[#6eb71420]] | tran |
1 | 6 | [[#6eb71420]] | tran |
1 | 7 | [[#6eb71420]] | tx |
1 | 8 | [[#6eb71420]] | tx |
1 | 9 | [[#6eb71420]] | tx |
1 | 10 | [[#6eb71420]] | tx |
1 | 11 | [[#6eb71420]] | tx |
1 | 12 | [[#6eb71420]] | tx |
1 | 13 | [[#6eb71420]] | tx |
2 | 1 | [[#6eb71380]] | "from Order" |
2 | 2 | [[#6eb71380]] | "from User" |
2 | 3 | [[#6eb71380]] | "from Invoice" |
2 | 4 | [[#6eb71380]] | "from Category" |
2 | 5 | [[#6eb71380]] | "from Orders" |
2 | 6 | [[#6eb71380]] | "from Order" |
2 | 7 | [[#6eb71380]] | "from Person" |
2 | 8 | [[#6eb71380]] | "from City" |
2 | 9 | [[#6eb71380]] | "from Adjunct" |
2 | 10 | [[#6eb71380]] | "from Project" |
2 | 11 | [[#6eb71380]] | " from ProjectWithOneList" |
2 | 12 | [[#6eb71380]] | "from Employee ee where ee.PostalCode = '66666'" |
2 | 13 | [[#6eb71380]] | "from Person" |
3 | 1 | [[#6eb710a0]] | "from Country" |
3 | 2 | [[#6eb710a0]] | "from BlogPost" |
3 | 3 | [[#6eb710a0]] | "from Customer" |
3 | 4 | [[#6eb710a0]] | "from Package" |
3 | 5 | [[#6eb710a0]] | "from User" |
3 | 6 | [[#6eb710a0]] | "from User" |
3 | 7 | [[#6eb710a0]] | "from Country" |
3 | 8 | [[#6eb710a0]] | "from Country" |
3 | 9 | [[#6eb710a0]] | "from Primary" |
3 | 10 | [[#6eb710a0]] | "from Scenario" |
3 | 11 | [[#6eb710a0]] | "from Scenario" |
3 | 12 | [[#6eb710a0]] | "from Order oo where oo.ShipCountry = 'Deadville'" |
3 | 13 | [[#6eb710a0]] | "from Home" |