Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _bd.Dispose();
     }
     base.Dispose(disposing);
 }
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed && disposing)
            {
                _contexto.Dispose();
            }

            this.disposed = true;
        }
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             context.Dispose();
         }
     }
     this.disposed = true;
 }