2 instantiations of EntityProxyFactory
System.Data.Entity (2)
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
55EntityProxyFactory factory = new EntityProxyFactory(); 87EntityProxyFactory factory = new EntityProxyFactory();
24 references to EntityProxyFactory
System.Data.Entity (24)
System\Data\Common\EntityUtil.cs (1)
241return EntityProxyFactory.IsProxyType(entityType) ? entityType.BaseType : entityType;
System\Data\Common\Internal\Materialization\Translator.cs (1)
1230EntityProxyTypeInfo proxyTypeInfo = EntityProxyFactory.GetProxyType(oSpaceType);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2604EntityProxyFactory.TryGetAssociationTypeFromProxyInfo(WrappedOwner, relationshipName, targetRoleName, out associationType))
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
433if (relatedEnd == null && !EntityProxyFactory.TryGetAssociationTypeFromProxyInfo(wrappedOwner, relationshipName, targetRoleName, out associationType)) 728if (EntityProxyFactory.IsProxyType(wrappedOwner.Entity.GetType()))
System\Data\Objects\Internal\EntityProxyFactory.cs (5)
197return (EntityProxyFactory.TryGetProxyType(wrappedEntity.Entity.GetType(), out proxyInfo) && proxyInfo != null && 847EntityProxyFactory.CanProxyGetter(clrProperty) && 1088if (clrProperty != null && EntityProxyFactory.CanProxySetter(clrProperty)) 1141_resetFKSetterFlagField = typeBuilder.DefineField(EntityProxyFactory.ResetFKSetterFlagFieldName, typeof(Action<object>), FieldAttributes.Private| FieldAttributes.Static); 1142_compareByteArraysField = typeBuilder.DefineField(EntityProxyFactory.CompareByteArraysFieldName, typeof(Func<object, object, bool>), FieldAttributes.Private | FieldAttributes.Static);
System\Data\Objects\Internal\EntityWrapperFactory.cs (4)
69if (EntityProxyFactory.TryGetProxyType(entity.GetType(), out proxyTypeInfo)) 88bool isProxy = EntityProxyFactory.IsProxyType(entityType); 147bool isProxy = EntityProxyFactory.IsProxyType(entityType); 274EntityProxyFactory.TryGetProxyWrapper(entity, out wrapper);
System\Data\Objects\Internal\LightweightEntityWrapper.cs (2)
39Debug.Assert(!EntityProxyFactory.IsProxyType(entity.GetType()), "LightweightEntityWrapper only works with entities that are not proxies"); 62Debug.Assert(!EntityProxyFactory.IsProxyType(entity.GetType()), "LightweightEntityWrapper only works with entities that are not proxies");
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
55EntityProxyFactory factory = new EntityProxyFactory(); 87EntityProxyFactory factory = new EntityProxyFactory();
System\Data\Objects\ObjectContext.cs (5)
2871/// See <see cref="EntityProxyFactory"/> class for more information about proxy type generation. 2894EntityProxyFactory.TryCreateProxyTypes( 2916return EntityProxyFactory.GetKnownProxyTypes(); 2935return EntityProxyFactory.IsProxyType(type) ? type.BaseType : type; 2966if (ContextOptions.ProxyCreationEnabled && ((proxyTypeInfo = EntityProxyFactory.GetProxyType(entityType)) != null))
System\Data\Objects\ObjectStateManager.cs (1)
314var proxyTypeInfo = EntityProxyFactory.GetProxyType(entityType);