Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 6 | 2 | 0.968 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 135 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
2 | 6 | 184 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
3 | 6 | 197 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
4 | 6 | 209 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
5 | 6 | 221 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
6 | 6 | 233 | 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); } |
| ||||
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); } |
| ||||
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); } |
| ||||
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); } |
| ||||
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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6f56df80]] | Ge |
1 | 2 | [[#6f56df80]] | Le |
1 | 3 | [[#6f56df80]] | Lt |
1 | 4 | [[#6f56df80]] | Gt |
1 | 5 | [[#6f56df80]] | Eq |
1 | 6 | [[#6f56df80]] | In |
2 | 1 | [[#6f56dea0]] | 27L |
2 | 2 | [[#6f56dea0]] | 27L |
2 | 3 | [[#6f56dea0]] | 200L |
2 | 4 | [[#6f56dea0]] | 2L |
2 | 5 | [[#6f56dea0]] | 27L |
2 | 6 | [[#6f56dea0]] | new object[] { 27 } |