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