@@ -17,7 +17,6 @@ public class ChangeDetector : IChangeDetector
17
17
{
18
18
private readonly IDiagnosticsLogger < DbLoggerCategory . ChangeTracking > _logger ;
19
19
private readonly ILoggingOptions _loggingOptions ;
20
- private bool _suspended ;
21
20
22
21
/// <summary>
23
22
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
@@ -33,24 +32,6 @@ public ChangeDetector(
33
32
_loggingOptions = loggingOptions ;
34
33
}
35
34
36
- /// <summary>
37
- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
38
- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
39
- /// any release. You should only use it directly in your code with extreme caution and knowing that
40
- /// doing so can result in application failures when updating to a new Entity Framework Core release.
41
- /// </summary>
42
- public virtual void Suspend ( )
43
- => _suspended = true ;
44
-
45
- /// <summary>
46
- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
47
- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
48
- /// any release. You should only use it directly in your code with extreme caution and knowing that
49
- /// doing so can result in application failures when updating to a new Entity Framework Core release.
50
- /// </summary>
51
- public virtual void Resume ( )
52
- => _suspended = false ;
53
-
54
35
/// <summary>
55
36
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
56
37
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -59,8 +40,7 @@ public virtual void Resume()
59
40
/// </summary>
60
41
public virtual void PropertyChanged ( InternalEntityEntry entry , IPropertyBase propertyBase , bool setModified )
61
42
{
62
- if ( _suspended
63
- || entry . EntityState == EntityState . Detached
43
+ if ( entry . EntityState == EntityState . Detached
64
44
|| propertyBase is IServiceProperty )
65
45
{
66
46
return ;
@@ -103,8 +83,7 @@ private static void ThrowIfKeyChanged(InternalEntityEntry entry, IProperty prope
103
83
/// </summary>
104
84
public virtual void PropertyChanging ( InternalEntityEntry entry , IPropertyBase propertyBase )
105
85
{
106
- if ( _suspended
107
- || entry . EntityState == EntityState . Detached
86
+ if ( entry . EntityState == EntityState . Detached
108
87
|| propertyBase is IServiceProperty )
109
88
{
110
89
return ;
0 commit comments