2 writes to _wrappedRelatedEntities
System.Data.Entity (2)
System\Data\Objects\DataClasses\EntityCollection.cs (2)
103
_wrappedRelatedEntities
= new Dictionary<TEntity, IEntityWrapper>();
796
_wrappedRelatedEntities
= new Dictionary<TEntity, IEntityWrapper>();
31 references to _wrappedRelatedEntities
System.Data.Entity (31)
System\Data\Objects\DataClasses\EntityCollection.cs (31)
101
if (null ==
_wrappedRelatedEntities
)
105
return
_wrappedRelatedEntities
;
130
return ((null !=
_wrappedRelatedEntities
) ?
_wrappedRelatedEntities
.Count : 0);
387
if (null !=
_wrappedRelatedEntities
&& null != this.ObjectContext)
389
List<IEntityWrapper> wrappedRelatedEntities = new List<IEntityWrapper>(
_wrappedRelatedEntities
.Values);
397
_wrappedRelatedEntities
[(TEntity)identityWrapper.Entity] = identityWrapper;
406
if (null !=
_wrappedRelatedEntities
&& null != this.ObjectContext)
410
foreach (IEntityWrapper wrappedEntity in
_wrappedRelatedEntities
.Values)
419
List<IEntityWrapper> values = new List<IEntityWrapper>(
_wrappedRelatedEntities
.Values);
456
if (null !=
_wrappedRelatedEntities
)
460
List<IEntityWrapper> tempCopy = new List<IEntityWrapper>(
_wrappedRelatedEntities
.Values);
474
Debug.Assert(
_wrappedRelatedEntities
.Count == 0, "After removing all related entities local collection count should be zero");
480
if (
_wrappedRelatedEntities
!= null)
482
this.
_wrappedRelatedEntities
.Clear();
532
if (
_wrappedRelatedEntities
!= null &&
_wrappedRelatedEntities
.Remove((TEntity)wrappedEntity.Entity))
569
return
_wrappedRelatedEntities
== null || (
_wrappedRelatedEntities
.Count == 0);
593
return
_wrappedRelatedEntities
== null ? false :
_wrappedRelatedEntities
.ContainsKey(entity);
635
if (null !=
_wrappedRelatedEntities
)
638
List<IEntityWrapper> affectedEntities = new List<IEntityWrapper>(
_wrappedRelatedEntities
.Values);
657
Debug.Assert(
_wrappedRelatedEntities
.Count == 0);
678
if (
_wrappedRelatedEntities
!= null)
680
_wrappedRelatedEntities
.Clear();
693
return
_wrappedRelatedEntities
== null ? false :
_wrappedRelatedEntities
.ContainsKey(entity);
778
_relatedEntities =
_wrappedRelatedEntities
== null ? null : new HashSet<TEntity>(
_wrappedRelatedEntities
.Keys);
799
_wrappedRelatedEntities
.Add(entity, EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext));