Esempio n. 1
0
        public void Alterar(Entities.tb_financial fin)
        {
            Entities.tb_financial tb = DB.tb_financial.FirstOrDefault(t => t.id_emp == fin.id_emp);
            tb.vl_grossSalary = fin.vl_grossSalary;
            tb.vl_netSalary   = fin.vl_netSalary;
            tb.ds_typeSalary  = fin.ds_typeSalary;
            tb.dt_fromDate    = fin.dt_fromDate;
            tb.dt_toDate      = fin.dt_toDate;

            DB.SaveChanges();
        }
Esempio n. 2
0
        public void Remover(Entities.tb_financial fin)
        {
            DB.tb_financial.Remove(fin);

            DB.SaveChanges();
        }
Esempio n. 3
0
        public void Inserir(Entities.tb_financial financial)
        {
            DB.tb_financial.Add(financial);

            DB.SaveChanges();
        }