コード例 #1
0
        public Boolean Eliminar(clsImpuesto Imp)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.Impuesto where q.IdImpuesto == Imp.IdImpuesto select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
コード例 #2
0
        public Boolean Eliminar(clsMedioPago Medio)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.MedioPago where q.IdMedioPago == Medio.IdMedioPago select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
コード例 #3
0
        public Boolean Eliminar(clsEmpresaServicio  Empresa)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.EmpresaServicio  where q.IdEmpresaServicio ==( Empresa .IdEmpresaServicio)  select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
コード例 #4
0
        public Boolean Eliminar(clsCuentaBancaria  Cuenta)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.CuentaBancaria where q.Serie == Cuenta.Serie select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
コード例 #5
0
        public Boolean Eliminar(clsOrdenPagoDet OrdenDet)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.OrdenPagoDet where q.NumLinea == OrdenDet.NumLinea select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }
コード例 #6
0
 public void Eliminar(clsCuentaPorPagar CuentaPorPagar)
 {
     using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
     {
         var x = (from q in ent.CuentaPorPagar where q.NumCuentaPorPagar == (CuentaPorPagar._NumCuentaPorPagar) select q).First();
         ent.DeleteObject(x);
         ent.SaveChanges();
     }
 }
コード例 #7
0
 public void Eliminar(clsEmpresaServicio Empresa)
 {
     using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
     {
         var x = (from q in ent.EmpresaServicio where q.IdEmpresaServicio == (Empresa._IdEmpresaServicio) select q).First();
         ent.DeleteObject(x);
         ent.SaveChanges();
     }
 }