public void add(DBConnection_EF con, ACMD_OHTC_DETAIL Obj) { con.ACMD_OHTC_DETAIL.Add(Obj); con.SaveChanges(); }
public void Update(DBConnection_EF con, ACMD_OHTC_DETAIL cmd_detail) { //bool isDetached = con.Entry(cmd_detal).State == EntityState.Modified; //if (isDetached) con.SaveChanges(); }