@@ -18,14 +18,14 @@ namespace Xtensive.Modelling.Comparison.Hints
18
18
public class DeleteDataHint : DataHint
19
19
{
20
20
[ Flags ]
21
- internal enum DeleteDataHintInfo : byte
21
+ internal enum DeleteDataHintState : byte
22
22
{
23
23
None = 0 ,
24
24
PostCopy = 1 ,
25
25
TableMovement = 2 ,
26
26
}
27
27
28
- private readonly DeleteDataHintInfo info = DeleteDataHintInfo . None ;
28
+ private readonly DeleteDataHintState state = DeleteDataHintState . None ;
29
29
30
30
/// <summary>
31
31
/// Gets a value indicating whether deletion must be performed after completion of copy data hint processing.
@@ -42,18 +42,18 @@ internal enum DeleteDataHintInfo : byte
42
42
/// these records are still necessary during upgrade to be copied, but must be removed on its
43
43
/// completion.
44
44
/// </summary>
45
- public bool IsPostCopyCleanup => ( info & DeleteDataHintInfo . PostCopy ) > 0 ;
45
+ public bool IsPostCopyCleanup => ( state & DeleteDataHintState . PostCopy ) > 0 ;
46
46
47
47
/// <summary>
48
48
/// Gets a value indicating whether cause of data deletion is due to table have changed its owner type.
49
49
/// </summary>
50
- public bool IsOwnerChangeCleanup => ( info & DeleteDataHintInfo . TableMovement ) > 0 ;
50
+ public bool IsOwnerChangeCleanup => ( state & DeleteDataHintState . TableMovement ) > 0 ;
51
51
52
52
/// <summary>
53
53
/// Gets a value indication whether deletion is unsafe. Deletion is considered insafe
54
54
/// if PostCopy or DueToTableOwnerChange equals <see langword="true"/>.
55
55
/// </summary>
56
- public bool IsUnsafe => info != DeleteDataHintInfo . None ;
56
+ public bool IsUnsafe => state != DeleteDataHintState . None ;
57
57
58
58
59
59
/// <summary>
@@ -64,7 +64,7 @@ internal enum DeleteDataHintInfo : byte
64
64
/// constructors but enum is better.
65
65
/// </para>
66
66
/// </summary>
67
- internal DeleteDataHintInfo Info => info ;
67
+ internal DeleteDataHintState State => state ;
68
68
69
69
/// <inheritdoc/>
70
70
public override string ToString ( )
@@ -99,7 +99,7 @@ public DeleteDataHint(string sourceTablePath, IList<IdentityPair> identities, b
99
99
: base ( sourceTablePath , identities )
100
100
{
101
101
if ( postCopy ) {
102
- info |= DeleteDataHintInfo . PostCopy ;
102
+ state |= DeleteDataHintState . PostCopy ;
103
103
}
104
104
}
105
105
@@ -115,23 +115,23 @@ public DeleteDataHint(string sourceTablePath, IList<IdentityPair> identities, bo
115
115
: base ( sourceTablePath , identities )
116
116
{
117
117
if ( postCopy ) {
118
- info |= DeleteDataHintInfo . PostCopy ;
118
+ state |= DeleteDataHintState . PostCopy ;
119
119
}
120
120
if ( dueToOnwerChange ) {
121
- info |= DeleteDataHintInfo . TableMovement ;
121
+ state |= DeleteDataHintState . TableMovement ;
122
122
}
123
123
}
124
124
125
125
/// <summary>
126
126
/// Initializes new instance of this type.
127
127
/// </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 )
132
132
: base ( sourceTablePath , identities )
133
133
{
134
- info = deleteDataInfo ;
134
+ this . state = state ;
135
135
}
136
136
}
137
137
}
0 commit comments