CloneSet162


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6620.968non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16135
src/NHibernate.Test/Criteria/ProjectionsTest.cs
26184
src/NHibernate.Test/Criteria/ProjectionsTest.cs
36197
src/NHibernate.Test/Criteria/ProjectionsTest.cs
46209
src/NHibernate.Test/Criteria/ProjectionsTest.cs
56221
src/NHibernate.Test/Criteria/ProjectionsTest.cs
66233
src/NHibernate.Test/Criteria/ProjectionsTest.cs
Clone Instance
1
Line Count
6
Source Line
135
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.In(Projections.Id(), new object[] { 27
                                                                                                    } )).List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone Instance
2
Line Count
6
Source Line
184
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Eq(Projections.Id(), 27L)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone Instance
3
Line Count
6
Source Line
197
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Gt(Projections.Id(), 2L)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone Instance
4
Line Count
6
Source Line
209
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Lt(Projections.Id(), 200L)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone Instance
5
Line Count
6
Source Line
221
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Le(Projections.Id(), 27L)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone Instance
6
Line Count
6
Source Line
233
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Ge(Projections.Id(), 27L)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

using (ISession session = sessions.OpenSession())
{
   IList<Student> list = session.CreateCriteria( typeof(Student)).Add(Expression. [[#variable6f56df80]](Projections.Id(), [[#variable6f56dea0]])).List<Student> ();
   Assert.AreEqual(27L, list[0].StudentNumber);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f56df80]]
Ge 
12[[#6f56df80]]
Le 
13[[#6f56df80]]
Lt 
14[[#6f56df80]]
Gt 
15[[#6f56df80]]
Eq 
16[[#6f56df80]]
In 
21[[#6f56dea0]]
27L 
22[[#6f56dea0]]
27L 
23[[#6f56dea0]]
200L 
24[[#6f56dea0]]
2L 
25[[#6f56dea0]]
27L 
26[[#6f56dea0]]
new object[]
{
   27
}