void IEntityWithChangeTracker.SetChangeTracker( IEntityChangeTracker changeTracker) { if (changeTracker != null && this.EntityChangeTracker != EntityObject._detachedEntityChangeTracker && !object.ReferenceEquals((object)changeTracker, (object)this.EntityChangeTracker)) { EntityEntry entityChangeTracker = this.EntityChangeTracker as EntityEntry; if (entityChangeTracker == null || !entityChangeTracker.ObjectStateManager.IsDisposed) { throw new InvalidOperationException(Strings.Entity_EntityCantHaveMultipleChangeTrackers); } } this.EntityChangeTracker = changeTracker; }
/// <summary> /// Used by the ObjectStateManager to attach or detach this EntityObject to the cache. /// </summary> /// <param name="changeTracker"> /// Reference to the ObjectStateEntry that contains this entity /// </param> void IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker changeTracker) { // Fail if the change tracker is already set for this EntityObject and it's being set to something different // If the original change tracker is associated with a disposed ObjectStateManager, then allow // the entity to be attached if (changeTracker != null && EntityChangeTracker != s_detachedEntityChangeTracker && !Object.ReferenceEquals(changeTracker, EntityChangeTracker)) { EntityEntry entry = EntityChangeTracker as EntityEntry; if (entry == null || !entry.ObjectStateManager.IsDisposed) { throw EntityUtil.EntityCantHaveMultipleChangeTrackers(); } } EntityChangeTracker = changeTracker; }
/// <summary> /// Used by the ObjectStateManager to attach or detach this EntityObject to the cache. /// </summary> /// <param name="changeTracker"> /// Reference to the ObjectStateEntry that contains this entity /// </param> void IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker changeTracker) { // Fail if the change tracker is already set for this EntityObject and it's being set to something different // If the original change tracker is associated with a disposed ObjectStateManager, then allow // the entity to be attached if (changeTracker != null && EntityChangeTracker != s_detachedEntityChangeTracker && !Object.ReferenceEquals(changeTracker, EntityChangeTracker)) { EntityEntry entry = EntityChangeTracker as EntityEntry; if (entry == null || !entry.ObjectStateManager.IsDisposed) { throw EntityUtil.EntityCantHaveMultipleChangeTrackers(); } } EntityChangeTracker = changeTracker; }
public virtual void SetChangeTracker(IEntityChangeTracker changeTracker) { _changeTracker = changeTracker; // Set CompoundObject change tracker }
public virtual void SetChangeTracker(IEntityChangeTracker changeTracker) { _changeTracker = changeTracker; // Set struct change tracker }
/// <summary> /// Specifies the instance of <see cref="T:System.Data.Objects.DataClasses.IEntityChangeTracker"/> that is used to report property changes. /// </summary> /// <param name="changeTracker">Reference to the change tracker that is used to report property changes.</param> void IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker changeTracker);
// See IEntityWrapper documentation public override void SetChangeTracker(IEntityChangeTracker changeTracker) { _changeTrackingStrategy.SetChangeTracker(changeTracker); }
// See IChangeTrackingStrategy documentation public void SetChangeTracker(IEntityChangeTracker changeTracker) { _entity.SetChangeTracker(changeTracker); }
public void SetChangeTracker(IEntityChangeTracker changeTracker) { }
public virtual void SetChangeTracker(IEntityChangeTracker changeTracker) { _changeTracker = changeTracker; // Set CompoundObject change tracker }
public virtual void SetChangeTracker(IEntityChangeTracker changeTracker) { _changeTracker = changeTracker; // Set struct change tracker }
public ActionRuleCompiler(IEntityChangeTracker entityChangeTracker, Type customExtensionMethodsType = null, ILogger logger = null) : base(customExtensionMethodsType, logger) { this.entityChangeTracker = entityChangeTracker; }
public void SetChangeTracker(IEntityChangeTracker changeTracker) { ((IEntityWithChangeTracker)_changeTracker).SetChangeTracker(changeTracker); }
public void SetChangeTracker(IEntityChangeTracker changeTracker) { this._entity.SetChangeTracker(changeTracker); }
public void SetChangeTracker(IEntityChangeTracker changeTracker) { Debug.Fail("Cannot access ChangeTracker from null wrapper."); }
// See IChangeTrackingStrategy documentation public void SetChangeTracker(IEntityChangeTracker changeTracker) { // Nothing to do when using snapshots for change tracking }
public EnigmaQueryableSet(IEntityChangeTracker changeTracker, IKeyExtractor keyExtractor, EnigmaQueryExecutor queryExecutor) { _changeTracker = changeTracker; _keyExtractor = keyExtractor; _queryProvider = new EnigmaQueryProvider(queryExecutor); }
// See IEntityWrapper documentation public override void SetChangeTracker(IEntityChangeTracker changeTracker) { _entity.SetChangeTracker(changeTracker); }
/// <summary> /// Allows a <see cref="IEntityChangeTracker"/> to be assigned to the specified instance. /// </summary> /// <param name="instance"></param> /// <param name="property"></param> /// <param name="args"></param> /// <returns></returns> public static void SetChangeTracker(IEntityType instance, IEntityChangeTracker changeTracker) { instance.ChangeTracker = changeTracker; instance.IsInitialized = true; }
// See IChangeTrackingStrategy documentation public void SetChangeTracker(IEntityChangeTracker changeTracker) { // Nothing to do when using snapshots for change tracking }
public abstract void SetChangeTracker(IEntityChangeTracker changeTracker);
public void SetChangeTracker(IEntityChangeTracker tracker1) { this._changeTracker = tracker1; }
public void SetChangeTracker(IEntityChangeTracker changeTracker) { Debug.Fail("Cannot access ChangeTracker from null wrapper."); }