partial void DeleteTechReservation(TechReservation instance);
partial void InsertTechReservation(TechReservation instance);
partial void UpdateTechReservation(TechReservation instance);
//预约技师 public static string reserve_tech(string techId, string seatId, string roomId, string time, string gender) { try { var db = new BathDbDataContext(connectionString); var tr = new TechReservation(); tr.techId = techId; tr.seatId = seatId; tr.roomId = roomId; tr.time = Convert.ToDateTime(time); tr.gender = gender; tr.proceeded = false; db.TechReservation.InsertOnSubmit(tr); db.SubmitChanges(); return "true"; } catch (System.Exception e) { return "false"; } }