1 implementation of IEntityWithChangeTracker
System.Data.Entity (1)
System\Data\Objects\DataClasses\EntityObject.cs (1)
22
public abstract class EntityObject : StructuralObject, IEntityWithKey,
IEntityWithChangeTracker
, IEntityWithRelationships
17 references to IEntityWithChangeTracker
System.Data.Entity (17)
System\Data\Common\Internal\Materialization\Translator.cs (2)
596
private static readonly ConstructorInfo EntityWithChangeTrackerStrategy_ctor = typeof(EntityWithChangeTrackerStrategy).GetConstructor(new Type[] { typeof(
IEntityWithChangeTracker
) });
762
bool isIEntityWithChangeTracker = typeof(
IEntityWithChangeTracker
).IsAssignableFrom(actualType);
System\Data\Objects\DataClasses\EntityObject.cs (1)
131
void
IEntityWithChangeTracker
.SetChangeTracker(IEntityChangeTracker changeTracker)
System\Data\Objects\EntityEntry.cs (3)
87
_requiresScalarChangeTracking = Entity != null && !(Entity is
IEntityWithChangeTracker
);
1494
Debug.Assert(this.Entity is
IEntityWithChangeTracker
, "for POCO objects the snapshot should contain all original values");
1603
Entity is
IEntityWithChangeTracker
&& // Is a full proxy
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1072
_implementIEntityWithChangeTracker = (null == baseType.GetInterface(typeof(
IEntityWithChangeTracker
).Name));
1150
if (_implementIEntityWithChangeTracker) { types.Add(typeof(
IEntityWithChangeTracker
)); }
System\Data\Objects\Internal\EntityWithChangeTrackerStrategy.cs (2)
21
private
IEntityWithChangeTracker
_entity;
28
public EntityWithChangeTrackerStrategy(
IEntityWithChangeTracker
entity)
System\Data\Objects\Internal\EntityWrapperFactory.cs (4)
86
bool isIEntityWithChangeTracker = typeof(
IEntityWithChangeTracker
).IsAssignableFrom(entityType);
110
where TEntity : IEntityWithRelationships, IEntityWithKey,
IEntityWithChangeTracker
145
bool isIEntityWithChangeTracker = typeof(
IEntityWithChangeTracker
).IsAssignableFrom(entityType);
333
return (object entity) => new EntityWithChangeTrackerStrategy((
IEntityWithChangeTracker
)entity);
System\Data\Objects\Internal\LightweightEntityWrapper.cs (3)
24
where TEntity : IEntityWithRelationships, IEntityWithKey,
IEntityWithChangeTracker
36
Debug.Assert(entity is
IEntityWithChangeTracker
, "LightweightEntityWrapper only works with entities that implement IEntityWithChangeTracker");
59
Debug.Assert(entity is
IEntityWithChangeTracker
, "LightweightEntityWrapper only works with entities that implement IEntityWithChangeTracker");