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