126 references to Deleted
System.Data.Entity (125)
System\Data\Common\EntityUtil.cs (2)
845
case EntityState.
Deleted
:
859
case EntityState.
Deleted
:
System\Data\Common\Internal\Materialization\Shaper.cs (4)
363
if (targetEntry.IsKeyEntry || newEntryState == EntityState.
Deleted
)
372
if (targetEntry.State != EntityState.
Deleted
)
390
manager.AddNewRelation(wrapper, EntityState.
Deleted
);
766
if (EntityState.
Deleted
== existingEntry.State)
System\Data\EntityClient\EntityAdapter.cs (1)
137
EntityState.Added | EntityState.
Deleted
| EntityState.Modified))
System\Data\Mapping\Update\Internal\ExtractedStateEntry.cs (1)
36
case EntityState.
Deleted
:
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (2)
178
case EntityState.
Deleted
:
208
case EntityState.
Deleted
:
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
352
case EntityState.
Deleted
:
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (5)
72
if (EntityState.Added == stateEntry.State || EntityState.
Deleted
== stateEntry.State)
187
if (EntityState.
Deleted
== stateEntry.State)
235
violationType = EntityState.
Deleted
;
264
(!isAdd && EntityState.
Deleted
!= entityEntry.State))
449
else if (current.StateEntry.State == EntityState.
Deleted
)
System\Data\Mapping\Update\Internal\UpdateCommand.cs (2)
116
else if (stateEntry.State == EntityState.
Deleted
)
142
if (isAdded || stateEntry.State == EntityState.
Deleted
)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (5)
212
if (stateEntry.State == EntityState.
Deleted
|| stateEntry.State == EntityState.Modified)
324
if (currentValues && null != existingPrincipal && existingPrincipal.State == EntityState.
Deleted
&&
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
))
943
if (0 != ((EntityState.Modified | EntityState.
Deleted
| EntityState.Unchanged) & stateEntry.State))
System\Data\Objects\DataClasses\EntityReference.cs (2)
134
if (relationshipEntry.State != EntityState.
Deleted
&&
432
(EntityKey == null && targetEntity.ObjectStateEntry.State == EntityState.
Deleted
|| // setting to a deleted principle
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
308
relationshipEntry.State != EntityState.
Deleted
)
322
if (existingEntry.State == EntityState.
Deleted
)
System\Data\Objects\DataClasses\RelatedEnd.cs (6)
373
entityState == EntityState.
Deleted
||
676
if (entry != null && entry.State == EntityState.
Deleted
)
1117
if (entry != null && entry.State == EntityState.
Deleted
)
1579
if (null != cacheEntry && cacheEntry.State == EntityState.
Deleted
)
1758
if (null != cacheEntry && cacheEntry.State != EntityState.
Deleted
&& !wrappedEntity.RelationshipManager.NodeVisited)
1871
dependent.State != EntityState.
Deleted
&&
System\Data\Objects\EntityEntry.cs (31)
253
if (State == EntityState.Added || State == EntityState.
Deleted
)
392
if (this.State == EntityState.
Deleted
)
435
case EntityState.
Deleted
:
440
_cache.ChangeState(this, EntityState.
Deleted
, EntityState.Detached);
941
_cache.ChangeState(this, EntityState.
Deleted
, State);
956
Debug.Assert(entry.State == EntityState.
Deleted
, "Relationship ObjectStateEntry should be in deleted state");
1643
EntityState.
Deleted
== State ||
1824
if (this.State != EntityState.
Deleted
)
1888
if (this.State != EntityState.
Deleted
&& !detectOnly)
1952
if (this.State != EntityState.
Deleted
)
2190
if (relatedWrapper.ObjectStateEntry.State == EntityState.
Deleted
)
2483
if (doFixup && this.State != EntityState.
Deleted
)
2509
_cache.ChangeState(this, EntityState.Modified, EntityState.
Deleted
);
2510
State = EntityState.
Deleted
;
2523
_cache.ChangeState(this, EntityState.Unchanged, EntityState.
Deleted
);
2525
State = EntityState.
Deleted
;
2528
case EntityState.
Deleted
:
2588
if (relationshipEntry.State != EntityState.
Deleted
)
2605
if (relationshipEntry.State == EntityState.
Deleted
)
2641
if ((relationshipEntry.State != EntityState.
Deleted
) &&
2985
if (this.State == EntityState.
Deleted
)
3046
else if (relationshipEntry.State == EntityState.
Deleted
)
3094
case EntityState.
Deleted
:
3131
case EntityState.
Deleted
:
3165
case EntityState.
Deleted
:
3178
case EntityState.
Deleted
:
3200
this.ObjectStateManager.ChangeState(this, EntityState.
Deleted
, EntityState.Unchanged);
3214
this.ObjectStateManager.ChangeState(this, EntityState.
Deleted
, EntityState.Modified);
3222
case EntityState.
Deleted
:
3375
this.State != EntityState.
Deleted
)
3546
principalEntry.State != EntityState.
Deleted
&&
System\Data\Objects\ObjectContext.cs (4)
499
foreach (ObjectStateEntry entry in ObjectStateManager.GetObjectStateEntries(EntityState.
Deleted
))
963
ose.State != EntityState.
Deleted
)
2132
if (item.Value.State == EntityState.
Deleted
)
2345
Int32 entriesAffected = ObjectStateManager.GetObjectStateEntriesCount(EntityState.Added | EntityState.
Deleted
| EntityState.Modified);
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (2)
37
case EntityState.
Deleted
:
55
case EntityState.
Deleted
:
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
35
case EntityState.
Deleted
:
System\Data\Objects\ObjectStateManager.cs (37)
716
if (relationshipEntry.State != EntityState.
Deleted
)
864
if (relationshipEntry.State == EntityState.
Deleted
)
1042
if (newEntryState != EntityState.
Deleted
)
1059
manager.AddNewRelation(wrapper, EntityState.
Deleted
);
1216
if (relationshipEntry.State != EntityState.
Deleted
)
1234
newEntryState = EntityState.
Deleted
;
1244
case EntityState.
Deleted
:
1245
newEntryState = EntityState.
Deleted
;
1307
else if (relationshipEntry.State == EntityState.
Deleted
)
1314
if (targetEntry.State != EntityState.
Deleted
)
1364
if (relationshipToRemove.State != EntityState.
Deleted
)
1514
EntityState.
Deleted
== desiredState, // result entry should be in that state
1524
else if (EntityState.
Deleted
!= entry.State)
1532
else if (EntityState.
Deleted
== desiredState)
1539
else if (EntityState.
Deleted
!= desiredState)
1541
Debug.Assert(EntityState.
Deleted
== entry.State, "should be deleted state");
1803
if ((EntityState.
Deleted
& state) != 0)
1853
if (((EntityState.
Deleted
& state) != 0) && (null != _deletedRelationshipStore))
1881
if (((EntityState.
Deleted
& state) != 0) && (null != _deletedEntityStore))
2335
if ((sourceEntry.State == EntityState.
Deleted
|| targetEntry.State == EntityState.
Deleted
) &&
2336
(relationshipState != EntityState.
Deleted
&& relationshipState != EntityState.Detached))
2376
case EntityState.
Deleted
:
2377
relationshipEntry = this.AddNewRelation(relationshipWrapper, EntityState.
Deleted
);
2741
if (newState == EntityState.
Deleted
)
2776
case EntityState.
Deleted
:
2819
case EntityState.
Deleted
:
2880
case EntityState.
Deleted
:
2902
case EntityState.
Deleted
:
2924
case EntityState.
Deleted
:
2950
case EntityState.
Deleted
:
3130
if (entry.State == EntityState.
Deleted
)
3384
if (relatedEntry.State != EntityState.
Deleted
)
3466
entry.State != EntityState.
Deleted
&&
3547
if (entry.State == EntityState.Detached || entry.State == EntityState.
Deleted
|| entry.IsKeyEntry)
3584
if (entry.State == EntityState.Detached || entry.State == EntityState.
Deleted
|| entry.IsKeyEntry)
3592
if (entry.State == EntityState.Detached || entry.State == EntityState.
Deleted
|| entry.IsKeyEntry)
System\Data\Objects\RelationshipEntry.cs (17)
41
EntityState.
Deleted
== state,
71
case EntityState.
Deleted
:
76
_cache.ChangeState(this, EntityState.
Deleted
, EntityState.Detached);
204
if (this.State == EntityState.
Deleted
)
320
_cache.ChangeState(this, EntityState.
Deleted
, State);
397
if (State == EntityState.
Deleted
&& throwException)
500
if (State != EntityState.
Deleted
) //for deleted ObjectStateEntry its a no-op
561
_cache.ChangeState(this, this.State, EntityState.
Deleted
);
562
State = EntityState.
Deleted
;
584
_cache.ChangeState(this, EntityState.Unchanged, EntityState.
Deleted
);
585
State = EntityState.
Deleted
;
624
case EntityState.
Deleted
:
648
case EntityState.
Deleted
:
662
case EntityState.
Deleted
:
672
this.ObjectStateManager.ChangeState(this, EntityState.
Deleted
, EntityState.Added);
682
this.ObjectStateManager.ChangeState(this, EntityState.
Deleted
, EntityState.Unchanged);
685
case EntityState.
Deleted
:
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))