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.995 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 28 | src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs |
2 | 13 | 45 | src/NHibernate.Test/NHSpecificTest/NH1101/Fixture.cs |
| ||||
using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { a = s.Get < A > (savedId); IStatistics statistics = sessions.Statistics; statistics.Clear(); Assert.IsNotNull(a.B); // an instance of B was created s.Flush(); t.Commit(); // since we don't change anyproperties in a.B there are no dirty entity to commit Assert.AreEqual(0, statistics.PrepareStatementCount); } |
| ||||
// using proxy using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { a = s.Load < A > (savedId); IStatistics statistics = sessions.Statistics; statistics.Clear(); Assert.IsNotNull(a.B); // an instance of B was created s.Flush(); t.Commit(); Assert.AreEqual(0, statistics.PrepareStatementCount); } |
| |||
// using proxy using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { a = s. [[#variable68427aa0]]< A > (savedId); IStatistics statistics = sessions.Statistics; statistics.Clear(); Assert.IsNotNull(a.B); // an instance of B was created s.Flush(); t.Commit(); // since we don't change anyproperties in a.B there are no dirty entity to commit Assert.AreEqual(0, statistics.PrepareStatementCount); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#68427aa0]] | Get |
1 | 2 | [[#68427aa0]] | Load |