Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.973 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 65 | src/NHibernate.Test/TransformTests/AliasToBeanResultTransformerFixture.cs |
2 | 7 | 123 | src/NHibernate.Test/TransformTests/AliasToBeanResultTransformerFixture.cs |
| ||||
using (ISession s = OpenSession()) { IList<WithOutPublicParameterLessCtor> l = s.CreateSQLQuery("select s.Name as something from Simple s").SetResultTransformer( Transformers.AliasToBean<WithOutPublicParameterLessCtor> ()).List<WithOutPublicParameterLessCtor> (); Assert.That(l.Count, Is.EqualTo(2)); Assert.That(l, Has.All.Not.Null); } |
| ||||
using (ISession s = OpenSession()) { IList<PublicParameterLessCtor> l = s.CreateSQLQuery(queryString).SetResultTransformer( Transformers.AliasToBean<PublicParameterLessCtor> ()).List<PublicParameterLessCtor> (); Assert.That(l.Count, Is.EqualTo(2)); Assert.That(l, Has.All.Not.Null); } |
| |||
using (ISession s = OpenSession()) { IList< [[#variable2c5bd8c0]]> l = s.CreateSQLQuery( [[#variable2c5bd7e0]]).SetResultTransformer(Transformers.AliasToBean< [[#variable2c5bd8c0]]> ()).List< [[#variable2c5bd8c0]]> (); Assert.That(l.Count, Is.EqualTo(2)); Assert.That(l, Has.All.Not.Null); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c5bd8c0]] | WithOutPublicParameterLessCtor |
1 | 2 | [[#2c5bd8c0]] | PublicParameterLessCtor |
2 | 1 | [[#2c5bd7e0]] | "select s.Name as something from Simple s" |
2 | 2 | [[#2c5bd7e0]] | queryString |