CloneSet1831


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.971class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11950
src/NHibernate/ReplicationMode.cs
21692
src/NHibernate/ReplicationMode.cs
Clone Instance
1
Line Count
19
Source Line
50
Source File
src/NHibernate/ReplicationMode.cs

                #endregion
                #region Nested type: IgnoreReplicationMode
                private sealed class IgnoreReplicationMode : ReplicationMode
                {
                        public IgnoreReplicationMode(string name) : base(name) {
                                                                               }

                        /// <summary>
                        /// Ignore replicated entities when a row already exists
                        /// </summary>
                        public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion,
                                                                           IVersionType versionType)
                        {
                                return false;
                        }

                }



Clone Instance
2
Line Count
16
Source Line
92
Source File
src/NHibernate/ReplicationMode.cs

                #endregion
                #region Nested type: OverwriteReplicationMode
                private sealed class OverwriteReplicationMode : ReplicationMode
                {
                        public OverwriteReplicationMode(string name) : base(name) {
                                                                                  }

                        /// <summary>
                        /// Overwrite existing rows when a row already exists
                        /// </summary>
                        public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion,
                                                                           IVersionType versionType)
                        {
                                return true;
                        }

                }



Clone AbstractionParameter Count: 2Parameter Bindings

#endregion
#region Nested type: IgnoreReplicationMode
#region Nested type: OverwriteReplicationMode
private sealed class [[#variable4f651b80]]: ReplicationMode
{
   public [[#variable4f651b80]](string name): base(name)
   {
   }

   /// <summary>
   /// Ignore replicated entities when a row already exists
   /// Overwrite existing rows when a row already exists
   /// </summary>
   public override bool ShouldOverwriteCurrentVersion(object entity, object currentVersion, object newVersion, IVersionType versionType)
   {
      return [[#variable4f651b00]];
   }

}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4f651b80]]
IgnoreReplicationMode 
12[[#4f651b80]]
OverwriteReplicationMode 
21[[#4f651b00]]
false 
22[[#4f651b00]]
true