80 references to Modified
System.Data.Entity (79)
System\Data\Common\EntityUtil.cs (1)
844
case EntityState.
Modified
:
System\Data\EntityClient\EntityAdapter.cs (1)
137
EntityState.Added | EntityState.Deleted | EntityState.
Modified
))
System\Data\Mapping\Update\Internal\ExtractedStateEntry.cs (1)
47
case EntityState.
Modified
:
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
213
case EntityState.
Modified
:
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
343
case EntityState.
Modified
:
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (7)
208
if (stateEntry.State == EntityState.Added || stateEntry.State == EntityState.
Modified
)
212
if (stateEntry.State == EntityState.Deleted || stateEntry.State == EntityState.
Modified
)
325
(stateEntry.State == EntityState.Added || stateEntry.State == EntityState.
Modified
))
849
foreach (IEntityStateEntry modifiedEntry in m_stateManager.GetEntityStateEntries(EntityState.
Modified
| EntityState.Added | EntityState.Deleted))
854
foreach (IEntityStateEntry modifiedEntry in m_stateManager.GetEntityStateEntries(EntityState.
Modified
| EntityState.Added | EntityState.Deleted))
937
if (0 != ((EntityState.Added | EntityState.
Modified
| EntityState.Unchanged) & stateEntry.State))
943
if (0 != ((EntityState.
Modified
| EntityState.Deleted | EntityState.Unchanged) & stateEntry.State))
System\Data\Objects\DataClasses\EntityReference.cs (1)
659
bool canSetModifiedProps = entry != null && (entry.State == EntityState.
Modified
|| entry.State == EntityState.Unchanged);
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
371
entityState == EntityState.
Modified
||
741
_wrappedOwner.ObjectStateEntry.State == EntityState.
Modified
||
910
if (stateEntry.State != EntityState.
Modified
&&
957
stateEntry.State != EntityState.
Modified
)
1703
if (dependentEntry.State == EntityState.Unchanged || dependentEntry.State == EntityState.
Modified
)
System\Data\Objects\EntityEntry.cs (35)
191
if (EntityState.
Modified
== this.State && _modifiedFields != null)
214
Debug.Assert(State == EntityState.Unchanged || State == EntityState.
Modified
, "ValidateAndGetOrdinalForProperty should have thrown.");
218
State = EntityState.
Modified
;
287
Debug.Assert(State == EntityState.
Modified
, "Should have handled all other states above.");
474
case EntityState.
Modified
:
475
_cache.ChangeState(this, EntityState.
Modified
, EntityState.Unchanged);
504
State = EntityState.
Modified
;
507
else if (EntityState.
Modified
!= State)
940
State = (_modifiedFields == null) ? EntityState.Unchanged : EntityState.
Modified
;
964
Debug.Assert(State == EntityState.
Modified
, "SetModifiedAll called when not modified");
1168
State = EntityState.
Modified
;
1170
if (State == EntityState.
Modified
)
1240
State = EntityState.
Modified
;
1280
_cache.SaveOriginalValues = (State == EntityState.Unchanged || State == EntityState.
Modified
) &&
1642
Debug.Assert(EntityState.
Modified
== State ||
2112
(principalEntry.State == EntityState.
Modified
|| principalEntry.State == EntityState.Unchanged))
2195
(State & (EntityState.
Modified
| EntityState.Unchanged)) != 0 &&
2196
(relatedWrapper.ObjectStateEntry.State & (EntityState.
Modified
| EntityState.Unchanged)) != 0)
2500
case EntityState.
Modified
:
2508
Debug.Assert(EntityState.
Modified
== State, "Expected ObjectStateEntry state is Modified; make sure FixupRelationship did not corrupt cache entry state");
2509
_cache.ChangeState(this, EntityState.
Modified
, EntityState.Deleted);
2794
if (otherEnd.State == EntityState.Unchanged || otherEnd.State == EntityState.
Modified
)
3088
case EntityState.
Modified
:
3126
case EntityState.
Modified
:
3144
case EntityState.
Modified
:
3160
case EntityState.
Modified
:
3210
case EntityState.
Modified
:
3214
this.ObjectStateManager.ChangeState(this, EntityState.Deleted, EntityState.
Modified
);
3215
this.State = EntityState.
Modified
;
3247
if (oldState == EntityState.Unchanged && this.State == EntityState.
Modified
)
3250
this.ObjectStateManager.ChangeState(this, oldState, EntityState.
Modified
);
3346
if (this.State != EntityState.
Modified
&&
3373
if (this.State != EntityState.
Modified
&&
3780
if (dependentEntry.State == EntityState.Added || (dependentEntry.State == EntityState.
Modified
&& !fkOverlapsPk))
3907
Debug.Assert(this.State == EntityState.Added || this.State == EntityState.
Modified
, "unexpected state");
System\Data\Objects\ObjectContext.cs (4)
504
foreach (ObjectStateEntry entry in ObjectStateManager.GetObjectStateEntries(EntityState.Added | EntityState.
Modified
))
961
if (ose.State != EntityState.
Modified
&&
2248
if ((null != entry) && (EntityState.
Modified
== entry.State))
2345
Int32 entriesAffected = ObjectStateManager.GetObjectStateEntriesCount(EntityState.Added | EntityState.Deleted | EntityState.
Modified
);
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (2)
36
case EntityState.
Modified
:
54
case EntityState.
Modified
:
System\Data\Objects\ObjectStateEntryDbUpdatableDataRecord.cs (2)
32
case EntityState.
Modified
:
47
case EntityState.
Modified
:
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (3)
34
case EntityState.
Modified
:
118
if (oldState == EntityState.Unchanged && entry.State == EntityState.
Modified
)
120
entry.ObjectStateManager.ChangeState(entry, oldState, EntityState.
Modified
);
System\Data\Objects\ObjectStateManager.cs (11)
1518
Debug.Assert(null == entry || (EntityState.
Modified
!= entry.State), "relationship should never be modified");
1799
if ((EntityState.
Modified
& state) != 0)
1874
if (((EntityState.
Modified
& state) != 0) && (null != _modifiedEntityStore))
2350
Debug.Assert(requestedState != EntityState.
Modified
, "relationship cannot be in Modified state");
2827
case EntityState.
Modified
:
2927
case EntityState.
Modified
:
2953
case EntityState.
Modified
:
3142
if (entry.State == EntityState.Unchanged || entry.State == EntityState.
Modified
)
3176
if (pair.Key.IsForeignKey && (entry.State == EntityState.Unchanged || entry.State == EntityState.
Modified
))
3259
relatedEntry.State == EntityState.
Modified
))
3321
if (entry.State == EntityState.Added || entry.State == EntityState.
Modified
)
System\Data\Objects\RelationshipEntry.cs (4)
83
case EntityState.
Modified
:
580
case EntityState.
Modified
:
608
Debug.Assert(requestedState != EntityState.
Modified
, "Invalid requested state for relationsihp");
609
Debug.Assert(this.State != EntityState.
Modified
, "Invalid initial state for relationsihp");
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
601
foreach (ObjectStateEntry entry in this.ObjectContext.ObjectStateManager.GetObjectStateEntries(EntityState.Added | EntityState.Deleted | EntityState.
Modified
| EntityState.Unchanged))