22 references to WrapEntityUsingContext
System.Data.Entity (22)
System\Data\Objects\DataClasses\EntityCollection.cs (6)
255
wrappedEntities.Add(EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext));
275
Attach(new IEntityWrapper[] { EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext) }, false);
321
Add(EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext));
382
return Remove(EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext), /*preserveForeignKey*/false);
394
IEntityWrapper identityWrapper = EntityWrapperFactory.
WrapEntityUsingContext
(wrappedEntity.Entity, WrappedOwner.Context);
799
_wrappedRelatedEntities.Add(entity, EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext));
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (4)
83
ReferenceValue = EntityWrapperFactory.
WrapEntityUsingContext
(value, ObjectContext);
254
Attach(new IEntityWrapper[] { EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext) }, false);
266
IEntityWrapper identityWrapper = EntityWrapperFactory.
WrapEntityUsingContext
(_wrappedCachedValue.Entity, WrappedOwner.Context);
740
_wrappedCachedValue = EntityWrapperFactory.
WrapEntityUsingContext
(_cachedValue, ObjectContext);
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
780
IEntityWrapper wrapper = EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext);
837
Attach(new IEntityWrapper[] { EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext) }, false);
997
this.Add(EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext));
1042
return Remove(EntityWrapperFactory.
WrapEntityUsingContext
(entity, ObjectContext), false);
2538
_wrappedOwner = EntityWrapperFactory.
WrapEntityUsingContext
(_owner, ObjectContext);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1400
_wrappedOwner = EntityWrapperFactory.
WrapEntityUsingContext
(_owner, null);
System\Data\Objects\ObjectContext.cs (5)
822
IEntityWrapper wrappedEntity = EntityWrapperFactory.
WrapEntityUsingContext
(entity, this);
888
IEntityWrapper wrappedEntity = EntityWrapperFactory.
WrapEntityUsingContext
(currentEntity, this);
933
IEntityWrapper wrappedOriginalEntity = EntityWrapperFactory.
WrapEntityUsingContext
(originalEntity, this);
1247
IEntityWrapper wrappedEntity = EntityWrapperFactory.
WrapEntityUsingContext
(entityLike, this);
2254
IEntityWrapper wrappedEntity = EntityWrapperFactory.
WrapEntityUsingContext
(entity, this);
System\Data\Objects\ObjectStateManager.cs (1)
993
wrappedTarget = EntityWrapperFactory.
WrapEntityUsingContext
(someTarget, context);