1 implementation of IEntityWithRelationships
System.Data.Entity (1)
System\Data\Objects\DataClasses\EntityObject.cs (1)
22public abstract class EntityObject : StructuralObject, IEntityWithKey, IEntityWithChangeTracker, IEntityWithRelationships
37 references to IEntityWithRelationships
System.Data.Entity (37)
System\Data\Common\Internal\Materialization\Translator.cs (1)
761bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(actualType);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
774if (!(WrappedOwner.Entity is IEntityWithRelationships))
System\Data\Objects\DataClasses\EntityObject.cs (1)
155RelationshipManager IEntityWithRelationships.RelationshipManager
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
748if (!(WrappedOwner.Entity is IEntityWithRelationships))
System\Data\Objects\DataClasses\IRelatedEnd.cs (3)
78void Add(IEntityWithRelationships entity); 103bool Remove(IEntityWithRelationships entity); 130void Attach(IEntityWithRelationships entity);
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
72private IEntityWithRelationships _owner; 816void IRelatedEnd.Attach(IEntityWithRelationships entity) 979void IRelatedEnd.Add(IEntityWithRelationships entity) 1024bool IRelatedEnd.Remove(IEntityWithRelationships entity) 2517_owner = wrappedOwner.Entity as IEntityWithRelationships;
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
51private IEntityWithRelationships _owner; 143public static RelationshipManager Create(IEntityWithRelationships owner) 170Debug.Assert(_owner != null || !(wrappedOwner.Entity is IEntityWithRelationships), "_owner should only be null if entity is not IEntityWithRelationships"); 1025if (!(wrappedOwner.Entity is IEntityWithRelationships))
System\Data\Objects\EntityEntry.cs (3)
95(!(Entity is IEntityWithRelationships) || 2126Debug.Assert(!(this._wrappedEntity.Entity is IEntityWithRelationships), "this method should be called only for entities which don't implement IEntityWithRelationships"); 2248Debug.Assert(!(this.Entity is IEntityWithRelationships), "Entity shouldn't implement IEntityWithRelationships");
System\Data\Objects\Internal\EntityProxyFactory.cs (5)
575typeof(IEntityWithRelationships).IsAssignableFrom(ospaceEntityType.ClrType) || 1053static readonly MethodInfo s_CreateRelationshipManager = typeof(RelationshipManager).GetMethod("Create", new Type[] { typeof(IEntityWithRelationships) }); 1054static readonly MethodInfo s_GetRelationshipManager = typeof(IEntityWithRelationships).GetProperty("RelationshipManager").GetGetMethod(); 1073_implementIEntityWithRelationships = (null == baseType.GetInterface(typeof(IEntityWithRelationships).Name)); 1151if (_implementIEntityWithRelationships) { types.Add(typeof(IEntityWithRelationships)); }
System\Data\Objects\Internal\EntityWrapper.cs (1)
84where TEntity : IEntityWithRelationships
System\Data\Objects\Internal\EntityWrapperFactory.cs (6)
85bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(entityType); 110where TEntity : IEntityWithRelationships, IEntityWithKey, IEntityWithChangeTracker 117where TEntity : IEntityWithRelationships 144bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(entityType); 254IEntityWithRelationships entityWithRelationships = entity as IEntityWithRelationships;
System\Data\Objects\Internal\LightweightEntityWrapper.cs (3)
24where TEntity : IEntityWithRelationships, IEntityWithKey, IEntityWithChangeTracker 37Debug.Assert(entity is IEntityWithRelationships, "LightweightEntityWrapper only works with entities that implement IEntityWithRelationships"); 60Debug.Assert(entity is IEntityWithRelationships, "LightweightEntityWrapper only works with entities that implement IEntityWithRelationships");
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (1)
272if (_entity is IEntityWithRelationships)
System\Data\Objects\ObjectStateManager.cs (2)
2654IEntityWithRelationships withRelationships = entity as IEntityWithRelationships;