57 references to EntityWrapperFactory
System.Data.Entity (57)
System\Data\Common\Internal\Materialization\Translator.cs (7)
591private static readonly PropertyInfo EntityWrapperFactory_NullWrapper = typeof(EntityWrapperFactory).GetProperty("NullWrapper", BindingFlags.Static | BindingFlags.NonPublic); 601private static readonly MethodInfo EntityWrapperFactory_GetPocoPropertyAccessorStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetPocoPropertyAccessorStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static); 602private static readonly MethodInfo EntityWrapperFactory_GetNullPropertyAccessorStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetNullPropertyAccessorStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static); 603private static readonly MethodInfo EntityWrapperFactory_GetEntityWithChangeTrackerStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetEntityWithChangeTrackerStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static); 604private static readonly MethodInfo EntityWrapperFactory_GetSnapshotChangeTrackingStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetSnapshotChangeTrackingStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static); 605private static readonly MethodInfo EntityWrapperFactory_GetEntityWithKeyStrategyStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetEntityWithKeyStrategyStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static); 606private static readonly MethodInfo EntityWrapperFactory_GetPocoEntityKeyStrategyFunc = typeof(EntityWrapperFactory).GetMethod("GetPocoEntityKeyStrategyFunc", BindingFlags.NonPublic | BindingFlags.Static);
System\Data\Objects\DataClasses\EntityCollection.cs (6)
255wrappedEntities.Add(EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext)); 275Attach(new IEntityWrapper[] { EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext) }, false); 321Add(EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext)); 382return Remove(EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext), /*preserveForeignKey*/false); 394IEntityWrapper identityWrapper = EntityWrapperFactory.WrapEntityUsingContext(wrappedEntity.Entity, WrappedOwner.Context); 799_wrappedRelatedEntities.Add(entity, EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext));
System\Data\Objects\DataClasses\EntityReference.cs (2)
193ReferenceValue = EntityWrapperFactory.NullWrapper; 318RemoveFromLocalCache(EntityWrapperFactory.NullWrapper, resetIsLoaded: true, preserveForeignKey: false);
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (9)
56_wrappedCachedValue = EntityWrapperFactory.NullWrapper; 62_wrappedCachedValue = EntityWrapperFactory.NullWrapper; 83ReferenceValue = EntityWrapperFactory.WrapEntityUsingContext(value, ObjectContext); 113ValidateOwnerWithRIConstraints(value, value == EntityWrapperFactory.NullWrapper ? null : value.EntityKey, checkBothEnds: true); 254Attach(new IEntityWrapper[] { EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext) }, false); 266IEntityWrapper identityWrapper = EntityWrapperFactory.WrapEntityUsingContext(_wrappedCachedValue.Entity, WrappedOwner.Context); 456wrappedEntity = EntityWrapperFactory.NullWrapper; 560_wrappedCachedValue = EntityWrapperFactory.NullWrapper; 740_wrappedCachedValue = EntityWrapperFactory.WrapEntityUsingContext(_cachedValue, ObjectContext);
System\Data\Objects\DataClasses\RelatedEnd.cs (9)
42_wrappedOwner = EntityWrapperFactory.NullWrapper; 728if (_wrappedOwner != null && _wrappedOwner != EntityWrapperFactory.NullWrapper && 780IEntityWrapper wrapper = EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext); 785EntityWrapperFactory.UpdateNoTrackingWrapper(wrapper, ObjectContext, targetEntitySet); 837Attach(new IEntityWrapper[] { EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext) }, false); 997this.Add(EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext)); 1042return Remove(EntityWrapperFactory.WrapEntityUsingContext(entity, ObjectContext), false); 2515_wrappedOwner = wrappedOwner != null ? wrappedOwner : EntityWrapperFactory.NullWrapper; 2538_wrappedOwner = EntityWrapperFactory.WrapEntityUsingContext(_owner, ObjectContext);
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
115_wrappedOwner = EntityWrapperFactory.CreateNewWrapper(_owner, null); 1400_wrappedOwner = EntityWrapperFactory.WrapEntityUsingContext(_owner, null);
System\Data\Objects\EntityEntry.cs (9)
109_wrappedEntity = EntityWrapperFactory.NullWrapper; 579IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingStateManager(currentEntity, this.ObjectStateManager); 599IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingStateManager(originalEntity, this.ObjectStateManager); 909_wrappedEntity = EntityWrapperFactory.NullWrapper; 2234relatedWrapper = EntityWrapperFactory.WrapEntityUsingStateManager(o, this.ObjectStateManager); 2318IEntityWrapper relatedWrapper = EntityWrapperFactory.WrapEntityUsingStateManager(relatedObject, this.ObjectStateManager); 2897_wrappedEntity = EntityWrapperFactory.NullWrapper; 3584relatedEnd.ReferenceValue = EntityWrapperFactory.NullWrapper; 3592relatedEnd.ReferenceValue = EntityWrapperFactory.NullWrapper;
System\Data\Objects\Internal\EntityWrapperFactory.cs (3)
92createDelegate = typeof(EntityWrapperFactory).GetMethod("CreateWrapperDelegateTypedLightweight", BindingFlags.NonPublic | BindingFlags.Static); 98createDelegate = typeof(EntityWrapperFactory).GetMethod("CreateWrapperDelegateTypedWithRelationships", BindingFlags.NonPublic | BindingFlags.Static); 102createDelegate = typeof(EntityWrapperFactory).GetMethod("CreateWrapperDelegateTypedWithoutRelationships", BindingFlags.NonPublic | BindingFlags.Static);
System\Data\Objects\ObjectContext.cs (8)
616IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContextGettingEntry(entity, this, out existingEntry); 822IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContext(entity, this); 888IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContext(currentEntity, this); 933IEntityWrapper wrappedOriginalEntity = EntityWrapperFactory.WrapEntityUsingContext(originalEntity, this); 997IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContextGettingEntry(entity, this, out existingEntry); 1247IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContext(entityLike, this); 2254IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingContext(entity, this); 2975IEntityWrapper wrappedEntity = EntityWrapperFactory.CreateNewWrapper(instance, null);
System\Data\Objects\ObjectStateManager.cs (2)
993wrappedTarget = EntityWrapperFactory.WrapEntityUsingContext(someTarget, context); 2669IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingStateManager(entity, this);