Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 0 | 1.000 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 1821 | src/NHibernate/Impl/SessionImpl.cs |
2 | 5 | 785 | src/NHibernate/Impl/StatelessSessionImpl.cs |
| ||||
public ICriteria CreateCriteria<T>() where T: class { using (new SessionIdLoggingContext(SessionId)) { return CreateCriteria( typeof(T)); } } |
| ||||
/// <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)); } } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |