public void Remove(PayrollSetup payroll) { if (Context.Entry(payroll).State == EntityState.Detached) { context.PayrollSetup.Attach(payroll); } context.PayrollSetup.Remove(payroll); }
public void Attach(PayrollSetup payroll) { context.PayrollSetup.Attach(payroll); }
public DbEntityEntry <PayrollSetup> Entry(PayrollSetup payroll) { return(Context.Entry(payroll)); }
public void Add(PayrollSetup payroll) { context.PayrollSetup.Add(payroll); }