CloneSet604


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18220.983class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11843
src/NHibernate/SqlCommand/SqlDeleteBuilder.cs
218152
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs
Clone Instance
1
Line Count
18
Source Line
43
Source File
src/NHibernate/SqlCommand/SqlDeleteBuilder.cs

                /// <summary>
                /// Sets the IdentityColumn for the <c>DELETE</c> sql to use.
                /// </summary>
                /// <param name="columnNames">An array of the column names for the Property</param>
                /// <param name="identityType">The IType of the Identity Property.</param>
                /// <returns>The SqlDeleteBuilder.</returns>
                public SqlDeleteBuilder SetIdentityColumn(string[] columnNames, IType identityType)
                {
                        whereStrings.Add(ToWhereString(columnNames));
                        parameterTypes.AddRange(identityType.SqlTypes(Mapping));
                        return this ;
                }

                /// <summary>
                /// Sets the VersionColumn for the <c>DELETE</c> sql to use.
                /// </summary>
                /// <param name="columnNames">An array of the column names for the Property</param>
                /// <param name="versionType">The IVersionType of the Version Property.</param>
                /// <returns>The SqlDeleteBuilder.</returns>
                public SqlDeleteBuilder SetVersionColumn(string[] columnNames, IVersionType versionType)
                {
                        whereStrings.Add(ToWhereString(columnNames));
                        parameterTypes.AddRange(versionType.SqlTypes(Mapping));
                        return this ;
                }



Clone Instance
2
Line Count
18
Source Line
152
Source File
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs

                /// <summary>
                /// Sets the IdentityColumn for the <c>UPDATE</c> sql to use.
                /// </summary>
                /// <param name="columnNames">An array of the column names for the Property</param>
                /// <param name="identityType">The IType of the Identity Property.</param>
                /// <returns>The SqlUpdateBuilder.</returns>
                public SqlUpdateBuilder SetIdentityColumn(string[] columnNames, IType identityType)
                {
                        whereStrings.Add(ToWhereString(columnNames));
                        whereParameterTypes.AddRange(identityType.SqlTypes(Mapping));
                        return this ;
                }

                /// <summary>
                /// Sets the VersionColumn for the <c>UPDATE</c> sql to use.
                /// </summary>
                /// <param name="columnNames">An array of the column names for the Property</param>
                /// <param name="versionType">The IVersionType of the Version Property.</param>
                /// <returns>The SqlUpdateBuilder.</returns>
                public SqlUpdateBuilder SetVersionColumn(string[] columnNames, IVersionType versionType)
                {
                        whereStrings.Add(ToWhereString(columnNames));
                        whereParameterTypes.AddRange(versionType.SqlTypes(Mapping));
                        return this ;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Sets the IdentityColumn for the <c>UPDATE</c> sql to use.
/// Sets the IdentityColumn for the <c>DELETE</c> sql to use.
/// </summary>
/// <param name="columnNames">An array of the column names for the Property</param>
/// <param name="identityType">The IType of the Identity Property.</param>
/// <returns>The SqlUpdateBuilder.</returns>
/// <returns>The SqlDeleteBuilder.</returns>
public [[#variable660937c0]]SetIdentityColumn(string[] columnNames, IType identityType)
{
   whereStrings.Add(ToWhereString(columnNames));
    [[#variable660936c0]].AddRange(identityType.SqlTypes(Mapping));
   return this ;
}

/// <summary>
/// Sets the VersionColumn for the <c>UPDATE</c> sql to use.
/// Sets the VersionColumn for the <c>DELETE</c> sql to use.
/// </summary>
/// <param name="columnNames">An array of the column names for the Property</param>
/// <param name="versionType">The IVersionType of the Version Property.</param>
/// <returns>The SqlUpdateBuilder.</returns>
/// <returns>The SqlDeleteBuilder.</returns>
public [[#variable660937c0]]SetVersionColumn(string[] columnNames, IVersionType versionType)
{
   whereStrings.Add(ToWhereString(columnNames));
    [[#variable660936c0]].AddRange(versionType.SqlTypes(Mapping));
   return this ;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#660937c0]]
SqlUpdateBuilder 
12[[#660937c0]]
SqlDeleteBuilder 
21[[#660936c0]]
whereParameterTypes 
22[[#660936c0]]
parameterTypes