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