Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.978 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 94 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs |
2 | 14 | 103 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs |
| ||||
public ProjectWithOneList LoadProject() { ProjectWithOneList project; using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed regardless of whether the scenario list is accessed during the set project = session.Get < ProjectWithOneList > ("Test"); //Commit the transaction and cloase the session tx.Commit(); } return project; } |
| ||||
public Project LoadProject() { Project project; using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed regardless of whether the scenario list is accessed during the set project = session.Get < Project > ("Test"); //Commit the transaction and cloase the session tx.Commit(); } return project; } |
| |||
public [[#variable29540ae0]]LoadProject() { [[#variable29540ae0]]project; using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed regardless of whether the scenario list is accessed during the set project = session.Get < [[#variable29540ae0]]> ("Test"); //Commit the transaction and cloase the session tx.Commit(); } return project; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#29540ae0]] | Project |
1 | 2 | [[#29540ae0]] | ProjectWithOneList |