Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 3 | 0 | 1.000 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 115 | src/NHibernate.Test/Extralazy/ExtraLazyFixture.cs |
2 | 12 | 157 | src/NHibernate.Test/Extralazy/ExtraLazyFixture.cs |
3 | 12 | 209 | src/NHibernate.Test/Extralazy/ExtraLazyFixture.cs |
| ||||
using ( var s = OpenSession()) using ( var t = s.BeginTransaction()) { gavin = new User("gavin", "secret"); turin = new User("turin", "tiger"); g = new Group("developers"); g.Users.Add("gavin", gavin); g.Users.Add("turin", turin); s.Persist(g); gavin.Session.Add("foo", new SessionAttribute("foo", "foo bar baz")); gavin.Session.Add("bar", new SessionAttribute("bar", "foo bar baz 2")); t.Commit(); } |
| ||||
using ( var s = OpenSession()) using ( var t = s.BeginTransaction()) { gavin = new User("gavin", "secret"); turin = new User("turin", "tiger"); g = new Group("developers"); g.Users.Add("gavin", gavin); g.Users.Add("turin", turin); s.Persist(g); gavin.Session.Add("foo", new SessionAttribute("foo", "foo bar baz")); gavin.Session.Add("bar", new SessionAttribute("bar", "foo bar baz 2")); t.Commit(); } |
| ||||
using ( var s = OpenSession()) using ( var t = s.BeginTransaction()) { gavin = new User("gavin", "secret"); turin = new User("turin", "tiger"); g = new Group("developers"); g.Users.Add("gavin", gavin); g.Users.Add("turin", turin); s.Persist(g); gavin.Session.Add("foo", new SessionAttribute("foo", "foo bar baz")); gavin.Session.Add("bar", new SessionAttribute("bar", "foo bar baz 2")); t.Commit(); } |
| |||
using ( var s = OpenSession()) using ( var t = s.BeginTransaction()) { gavin = new User("gavin", "secret"); turin = new User("turin", "tiger"); g = new Group("developers"); g.Users.Add("gavin", gavin); g.Users.Add("turin", turin); s.Persist(g); gavin.Session.Add("foo", new SessionAttribute("foo", "foo bar baz")); gavin.Session.Add("bar", new SessionAttribute("bar", "foo bar baz 2")); t.Commit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |