CloneSet720


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.990non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1958
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
2969
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
Clone Instance
1
Line Count
9
Source Line
58
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        using (ISession session = OpenSession())
                        {
                                // finds all courses which have a description equal to '%1'
                                Course example = new Course();
                                example.Description = "&%1";
                                IList result =
                                        session.CreateCriteria( typeof(Course)).Add(
                                                Example.Create(example).IgnoreCase().EnableLike().SetEscapeCharacter('&')).List();
                                Assert.AreEqual(1, result.Count);
                        }


Clone Instance
2
Line Count
9
Source Line
69
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        using (ISession session = OpenSession())
                        {
                                // finds all courses which contain '%' as the first char in the description 
                                Course example = new Course();
                                example.Description = "&%%";
                                IList result =
                                        session.CreateCriteria( typeof(Course)).Add(
                                                Example.Create(example).IgnoreCase().EnableLike().SetEscapeCharacter('&')).List();
                                Assert.AreEqual(2, result.Count);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

using (ISession session = OpenSession())
{
   // finds all courses which have a description equal to '%1'
   // finds all courses which contain '%' as the first char in the description 
   Course example = new Course();
   example.Description = [[#variable501d5300]];
   IList result = session.CreateCriteria( typeof(Course)).Add(Example.Create(example).IgnoreCase().EnableLike().SetEscapeCharacter('&')).List();
   Assert.AreEqual( [[#variable501d5260]], result.Count);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#501d5300]]
"&%1" 
12[[#501d5300]]
"&%%" 
21[[#501d5260]]
1 
22[[#501d5260]]
2