CloneSet756


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.973non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1765
src/NHibernate.Test/TransformTests/AliasToBeanResultTransformerFixture.cs
27123
src/NHibernate.Test/TransformTests/AliasToBeanResultTransformerFixture.cs
Clone Instance
1
Line Count
7
Source Line
65
Source File
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);
                                }


Clone Instance
2
Line Count
7
Source Line
123
Source File
src/NHibernate.Test/TransformTests/AliasToBeanResultTransformerFixture.cs

                        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);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2c5bd8c0]]
WithOutPublicParameterLessCtor 
12[[#2c5bd8c0]]
PublicParameterLessCtor 
21[[#2c5bd7e0]]
"select s.Name as something from Simple s" 
22[[#2c5bd7e0]]
queryString