2 writes to _addedEntityStore
System.Data.Entity (2)
System\Data\Objects\ObjectStateManager.cs (2)
2814
_addedEntityStore
= new Dictionary<EntityKey, EntityEntry>();
2948
_addedEntityStore
= null;
19 references to _addedEntityStore
System.Data.Entity (19)
System\Data\Objects\ObjectStateManager.cs (19)
1691
if (null !=
_addedEntityStore
)
1693
result =
_addedEntityStore
.TryGetValue(entry.EntityKey, out entrya);
1712
Dictionary<EntityKey, EntityEntry>[] stores = { _unchangedEntityStore, _modifiedEntityStore,
_addedEntityStore
, _deletedEntityStore };
1797
size += ((null !=
_addedEntityStore
) ?
_addedEntityStore
.Count : 0);
1819
if (
_addedEntityStore
!= null)
1821
size +=
_addedEntityStore
.Count;
1867
if (((EntityState.Added & state) != 0) && (null !=
_addedEntityStore
))
1869
foreach (var e in
_addedEntityStore
)
1912
GetEntityEntriesForDetectChanges(
_addedEntityStore
, ref entries);
1964
Debug.Assert(entry ==
_addedEntityStore
[oldKey], "not the same EntityEntry");
1967
Debug.Assert(null !=
_addedEntityStore
, "missing added store");
2057
Debug.Assert((null ==
_addedEntityStore
) || !
_addedEntityStore
.ContainsKey(oldKey), "EntityEntry exists with OldKey");
2562
result = ((null !=
_addedEntityStore
) &&
_addedEntityStore
.TryGetValue(key, out entry));
2812
if (null ==
_addedEntityStore
)
2816
dictionaryToAdd =
_addedEntityStore
;
2922
dictionaryContainingEntry =
_addedEntityStore
;