예제 #1
0
 public void Destroy()
 {
     logger.Debug("{0} called Destroy()", this.GetType());
     NotifyConfiguration.Instance.UnsubscribeAll(this);
     if (UoW != null)
     {
         UoW.Dispose();
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
 public override void Dispose()
 {
     NotifyConfiguration.Instance.UnsubscribeAll(this);
     UoW?.Dispose();
     base.Dispose();
 }
예제 #4
0
 public override void Destroy()
 {
     UoW?.Dispose();
     base.Destroy();
 }