Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 0 | 1.000 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1064 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 12 | 1248 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
| ||||
ProjectionList p1 = Projections.ProjectionList(). Add (Property.ForName("StudentNumber").Count()). Add (Property.ForName("StudentNumber").Max()). Add (Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList(). Add (Property.ForName("StudentNumber").Min()). Add (Property.ForName("StudentNumber").Avg()). Add (Projections.SqlProjection( "1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
| ||||
ProjectionList p1 = Projections.ProjectionList(). Add (Property.ForName("StudentNumber").Count()). Add (Property.ForName("StudentNumber").Max()). Add (Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList(). Add (Property.ForName("StudentNumber").Min()). Add (Property.ForName("StudentNumber").Avg()). Add (Projections.SqlProjection( "1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
| |||
ProjectionList p1 = Projections.ProjectionList().Add(Property.ForName("StudentNumber").Count()).Add(Property.ForName("StudentNumber").Max()).Add(Projections.RowCount()); ProjectionList p2 = Projections.ProjectionList().Add(Property.ForName("StudentNumber").Min()).Add(Property.ForName("StudentNumber").Avg()).Add(Projections.SqlProjection("1 as constOne, count(*) as countStar", new String[] { "constOne", "countStar" } , new IType[] { NHibernateUtil.Int32, NHibernateUtil.Int32 } )); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |