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 | 1839 | src/NHibernate/Impl/SessionImpl.cs |
2 | 5 | 801 | src/NHibernate/Impl/StatelessSessionImpl.cs |
| ||||
public ICriteria CreateCriteria<T>(string alias) where T: class { using (new SessionIdLoggingContext(SessionId)) { return CreateCriteria( typeof(T), alias); } } |
| ||||
/// <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); } } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |