예제 #1
0
 public void Remove(EmpCustody emp)
 {
     if (Context.Entry(emp).State == EntityState.Detached)
     {
         context.EmpCustodies.Attach(emp);
     }
     context.EmpCustodies.Remove(emp);
 }
예제 #2
0
 public DbEntityEntry <EmpCustody> Entry(EmpCustody emp)
 {
     return(Context.Entry(emp));
 }
예제 #3
0
 public void Attach(EmpCustody emp)
 {
     context.EmpCustodies.Attach(emp);
 }
예제 #4
0
 public void Add(EmpCustody emp)
 {
     context.EmpCustodies.Add(emp);
 }