public void Destroy() { logger.Debug("{0} called Destroy()", this.GetType()); NotifyConfiguration.Instance.UnsubscribeAll(this); if (UoW != null) { UoW.Dispose(); } }
public override void Destroy() { logger.Debug("OrmReference #{0} Destroy() called.", number); IOrmObjectMapping map = OrmMain.GetObjectDescription(objectType); if (map != null) { map.ObjectUpdated -= OnRefObjectUpdated; } if (isOwnerUow) { UoW.Dispose(); } base.Destroy(); }
public override void Dispose() { NotifyConfiguration.Instance.UnsubscribeAll(this); UoW?.Dispose(); base.Dispose(); }
public override void Destroy() { UoW?.Dispose(); base.Destroy(); }