CloneSet922


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.989class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1753
src/NHibernate/SqlCommand/SqlInsertBuilder.cs
2781
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs
Clone Instance
1
Line Count
7
Source Line
53
Source File
src/NHibernate/SqlCommand/SqlInsertBuilder.cs

                /// <summary>
                /// Adds the Property's columns to the INSERT sql
                /// </summary>
                /// <param name="columnName">The column name for the Property</param>
                /// <param name="propertyType">The IType of the property.</param>
                /// <returns>The SqlInsertBuilder.</returns>
                /// <remarks>The column will be associated with a parameter.</remarks>
                public virtual SqlInsertBuilder AddColumn(string columnName, IType propertyType)
                {
                        SqlType[] sqlTypes = propertyType.SqlTypes(factory);
                        if (sqlTypes.Length > 1)
                                throw new AssertionFailure("Adding one column for a composed IType.");
                        columns[columnName] = sqlTypes[0];
                        return this ;
                }



Clone Instance
2
Line Count
7
Source Line
81
Source File
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs

                public virtual SqlUpdateBuilder AddColumn(string columnName, IType propertyType)
                {
                        SqlType[] sqlTypes = propertyType.SqlTypes(Mapping);
                        if (sqlTypes.Length > 1)
                                throw new AssertionFailure("Adding one column for a composed IType.");
                        columns[columnName] = sqlTypes[0];
                        return this ;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Adds the Property's columns to the INSERT sql
/// </summary>
/// <param name="columnName">The column name for the Property</param>
/// <param name="propertyType">The IType of the property.</param>
/// <returns>The SqlInsertBuilder.</returns>
/// <remarks>The column will be associated with a parameter.</remarks>
public virtual [[#variable29585ea0]]AddColumn(string columnName, IType propertyType)
{
   SqlType[] sqlTypes = propertyType.SqlTypes( [[#variable29585e60]]);
   if (sqlTypes.Length > 1)
      throw new AssertionFailure("Adding one column for a composed IType.");
   columns[columnName] = sqlTypes[0];
   return this ;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#29585ea0]]
SqlInsertBuilder 
12[[#29585ea0]]
SqlUpdateBuilder 
21[[#29585e60]]
factory 
22[[#29585e60]]
Mapping