@@ -18,14 +18,14 @@ namespace Xtensive.Modelling.Comparison.Hints
1818 public class DeleteDataHint : DataHint
1919 {
2020 [ Flags ]
21- internal enum DeleteDataHintInfo : byte
21+ internal enum DeleteDataHintState : byte
2222 {
2323 None = 0 ,
2424 PostCopy = 1 ,
2525 TableMovement = 2 ,
2626 }
2727
28- private readonly DeleteDataHintInfo info = DeleteDataHintInfo . None ;
28+ private readonly DeleteDataHintState state = DeleteDataHintState . None ;
2929
3030 /// <summary>
3131 /// Gets a value indicating whether deletion must be performed after completion of copy data hint processing.
@@ -42,18 +42,18 @@ internal enum DeleteDataHintInfo : byte
4242 /// these records are still necessary during upgrade to be copied, but must be removed on its
4343 /// completion.
4444 /// </summary>
45- public bool IsPostCopyCleanup => ( info & DeleteDataHintInfo . PostCopy ) > 0 ;
45+ public bool IsPostCopyCleanup => ( state & DeleteDataHintState . PostCopy ) > 0 ;
4646
4747 /// <summary>
4848 /// Gets a value indicating whether cause of data deletion is due to table have changed its owner type.
4949 /// </summary>
50- public bool IsOwnerChangeCleanup => ( info & DeleteDataHintInfo . TableMovement ) > 0 ;
50+ public bool IsOwnerChangeCleanup => ( state & DeleteDataHintState . TableMovement ) > 0 ;
5151
5252 /// <summary>
5353 /// Gets a value indication whether deletion is unsafe. Deletion is considered insafe
5454 /// if PostCopy or DueToTableOwnerChange equals <see langword="true"/>.
5555 /// </summary>
56- public bool IsUnsafe => info != DeleteDataHintInfo . None ;
56+ public bool IsUnsafe => state != DeleteDataHintState . None ;
5757
5858
5959 /// <summary>
@@ -64,7 +64,7 @@ internal enum DeleteDataHintInfo : byte
6464 /// constructors but enum is better.
6565 /// </para>
6666 /// </summary>
67- internal DeleteDataHintInfo Info => info ;
67+ internal DeleteDataHintState State => state ;
6868
6969 /// <inheritdoc/>
7070 public override string ToString ( )
@@ -99,7 +99,7 @@ public DeleteDataHint(string sourceTablePath, IList<IdentityPair> identities, b
9999 : base ( sourceTablePath , identities )
100100 {
101101 if ( postCopy ) {
102- info |= DeleteDataHintInfo . PostCopy ;
102+ state |= DeleteDataHintState . PostCopy ;
103103 }
104104 }
105105
@@ -115,23 +115,23 @@ public DeleteDataHint(string sourceTablePath, IList<IdentityPair> identities, bo
115115 : base ( sourceTablePath , identities )
116116 {
117117 if ( postCopy ) {
118- info |= DeleteDataHintInfo . PostCopy ;
118+ state |= DeleteDataHintState . PostCopy ;
119119 }
120120 if ( dueToOnwerChange ) {
121- info |= DeleteDataHintInfo . TableMovement ;
121+ state |= DeleteDataHintState . TableMovement ;
122122 }
123123 }
124124
125125 /// <summary>
126126 /// Initializes new instance of this type.
127127 /// </summary>
128- /// <param name="sourceTablePath"></param>
129- /// <param name="identities"></param>
130- /// <param name="deleteDataInfo"> </param>
131- internal DeleteDataHint ( string sourceTablePath , IList < IdentityPair > identities , DeleteDataHintInfo deleteDataInfo )
128+ /// <param name="sourceTablePath">Source table path. </param>
129+ /// <param name="identities">Identities for data operation. </param>
130+ /// <param name="state">Hint state. </param>
131+ internal DeleteDataHint ( string sourceTablePath , IList < IdentityPair > identities , DeleteDataHintState state )
132132 : base ( sourceTablePath , identities )
133133 {
134- info = deleteDataInfo ;
134+ this . state = state ;
135135 }
136136 }
137137}
0 commit comments