CloneSet2276


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
151821
src/NHibernate/Impl/SessionImpl.cs
25785
src/NHibernate/Impl/StatelessSessionImpl.cs
Clone Instance
1
Line Count
5
Source Line
1821
Source File
src/NHibernate/Impl/SessionImpl.cs

                public ICriteria CreateCriteria<T>() where T:  class
                {
                        using (new SessionIdLoggingContext(SessionId))
                        {
                                return CreateCriteria( typeof(T));
                        }
                }



Clone Instance
2
Line Count
5
Source Line
785
Source File
src/NHibernate/Impl/StatelessSessionImpl.cs

                /// <summary>
                /// Create a new <see cref="ICriteria"/> instance, for the given entity class,
                /// or a superclass of an entity class. 
                /// </summary>
                /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam>
                /// <returns> The <see cref="ICriteria"/>. </returns>
                /// <remarks>Entities returned by the query are detached.</remarks>
                public ICriteria CreateCriteria<T>() where T:  class
                {
                        using (new SessionIdLoggingContext(SessionId))
                        {
                                return CreateCriteria( typeof(T));
                        }
                }



Clone AbstractionParameter Count: 0Parameter Bindings

/// <summary>
/// Create a new <see cref="ICriteria"/> instance, for the given entity class,
/// or a superclass of an entity class. 
/// </summary>
/// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam>
/// <returns> The <see cref="ICriteria"/>. </returns>
/// <remarks>Entities returned by the query are detached.</remarks>
public ICriteria CreateCriteria<T>()
where T: class
{
   using (new SessionIdLoggingContext(SessionId))
   {
      return CreateCriteria( typeof(T));
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None