CloneSet418


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.963class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1787
src/NHibernate/Mapping/ForeignKey.cs
2676
src/NHibernate/Mapping/PrimaryKey.cs
Clone Instance
1
Line Count
7
Source Line
87
Source File
src/NHibernate/Mapping/ForeignKey.cs

                #region IRelationalModel Memebers
                /// <summary>
                /// Get the SQL string to drop this Constraint in the database.
                /// </summary>
                /// <param name="dialect">The <see cref="Dialect.Dialect"/> to use for SQL rules.</param>
                /// <param name="defaultSchema"></param>
                /// <param name="defaultCatalog"></param>
                /// <returns>
                /// A string that contains the SQL to drop this Constraint.
                /// </returns>
                public override string SqlDropString(Dialect.Dialect dialect, string defaultCatalog, string defaultSchema)
                {
                        string ifExists = dialect.GetIfExistsDropConstraint(Table, Name);
                        string drop = string.Format("alter table {0} {1}", Table.GetQualifiedName(dialect, defaultCatalog, defaultSchema),
                                                                                                                                        dialect.GetDropForeignKeyConstraintString(Name));
                        string end = dialect.GetIfExistsDropConstraintEnd(Table, Name);
                        return ifExists + System.Environment.NewLine + drop + System.Environment.NewLine + end;
                }



Clone Instance
2
Line Count
6
Source Line
76
Source File
src/NHibernate/Mapping/PrimaryKey.cs

                #region IRelationalModel Members
                /// <summary>
                /// Get the SQL string to drop this Constraint in the database.
                /// </summary>
                /// <param name="dialect">The <see cref="Dialect.Dialect"/> to use for SQL rules.</param>
                /// <param name="defaultCatalog"></param>
                /// <param name="defaultSchema"></param>
                /// <returns>
                /// A string that contains the SQL to drop this Constraint.
                /// </returns>
                public override string SqlDropString(Dialect.Dialect dialect, string defaultCatalog, string defaultSchema)
                {
                        string ifExists = dialect.GetIfExistsDropConstraint(Table, Name);
                        string drop = string.Format("alter table {0}{1}", Table.GetQualifiedName(dialect, defaultCatalog, defaultSchema), dialect.GetDropPrimaryKeyConstraintString(Name));
                        string end = dialect.GetIfExistsDropConstraintEnd(Table, Name);
                        return ifExists + Environment.NewLine + drop + Environment.NewLine + end;
                }



Clone AbstractionParameter Count: 3Parameter Bindings

#region IRelationalModel Memebers
#region IRelationalModel Members
/// <summary>
/// Get the SQL string to drop this Constraint in the database.
/// </summary>
/// <param name="dialect">The <see cref="Dialect.Dialect"/> to use for SQL rules.</param>
/// <param name="defaultSchema"></param>
/// <param name="defaultCatalog"></param>
/// <param name="defaultSchema"></param>
/// <returns>
/// A string that contains the SQL to drop this Constraint.
/// </returns>
public override string SqlDropString(Dialect.Dialect dialect, string defaultCatalog, string defaultSchema)
{
   string ifExists = dialect.GetIfExistsDropConstraint(Table, Name);
   string drop = string.Format( [[#variable700a6100]], Table.GetQualifiedName(dialect, defaultCatalog, defaultSchema), dialect. [[#variable673b3700]](Name));
   string end = dialect.GetIfExistsDropConstraintEnd(Table, Name);
   return ifExists + [[#variable50f0ee60]].NewLine + drop + [[#variable50f0ee60]].NewLine + end;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#700a6100]]
"alter table {0} {1}" 
12[[#700a6100]]
"alter table {0}{1}" 
21[[#673b3700]]
GetDropForeignKeyConstraintString 
22[[#673b3700]]
GetDropPrimaryKeyConstraintString 
31[[#50f0ee60]]
System.Environment 
32[[#50f0ee60]]
Environment