CloneSet1875


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
151839
src/NHibernate/Impl/SessionImpl.cs
25801
src/NHibernate/Impl/StatelessSessionImpl.cs
Clone Instance
1
Line Count
5
Source Line
1839
Source File
src/NHibernate/Impl/SessionImpl.cs

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



Clone Instance
2
Line Count
5
Source Line
801
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, with the given alias. 
                /// </summary>
                /// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam>
                /// <param name="alias">The alias of the entity</param>
                /// <returns> The <see cref="ICriteria"/>. </returns>
                /// <remarks>Entities returned by the query are detached.</remarks>
                public ICriteria CreateCriteria<T>(string alias) where T:  class
                {
                        using (new SessionIdLoggingContext(SessionId))
                        {
                                return CreateCriteria( typeof(T), alias);
                        }
                }



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, with the given alias. 
/// </summary>
/// <typeparam name="T">A class, which is persistent, or has persistent subclasses</typeparam>
/// <param name="alias">The alias of the entity</param>
/// <returns> The <see cref="ICriteria"/>. </returns>
/// <remarks>Entities returned by the query are detached.</remarks>
public ICriteria CreateCriteria<T>(string alias)
where T: class
{
   using (new SessionIdLoggingContext(SessionId))
   {
      return CreateCriteria( typeof(T), alias);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None