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