16 references to ChangeState
System.Data.Entity (16)
System\Data\Objects\EntityEntry.cs (14)
219
_cache.
ChangeState
(this, EntityState.Unchanged, State);
440
_cache.
ChangeState
(this, EntityState.Deleted, EntityState.Detached);
475
_cache.
ChangeState
(this, EntityState.Modified, EntityState.Unchanged);
505
_cache.
ChangeState
(this, EntityState.Unchanged, State);
941
_cache.
ChangeState
(this, EntityState.Deleted, State);
1176
_cache.
ChangeState
(this, initialState, this.State);
2463
_cache.
ChangeState
(this, this.State, EntityState.Detached);
2495
_cache.
ChangeState
(this, EntityState.Added, EntityState.Detached);
2509
_cache.
ChangeState
(this, EntityState.Modified, EntityState.Deleted);
2523
_cache.
ChangeState
(this, EntityState.Unchanged, EntityState.Deleted);
2888
_cache.
ChangeState
(this, this.State, EntityState.Unchanged);
3200
this.ObjectStateManager.
ChangeState
(this, EntityState.Deleted, EntityState.Unchanged);
3214
this.ObjectStateManager.
ChangeState
(this, EntityState.Deleted, EntityState.Modified);
3250
this.ObjectStateManager.
ChangeState
(this, oldState, EntityState.Modified);
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
120
entry.ObjectStateManager.
ChangeState
(entry, oldState, EntityState.Modified);
System\Data\Objects\ObjectStateManager.cs (1)
1650
ChangeState
(keyEntry, keyEntry.State, EntityState.Detached);