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