public void submitBook(long doctorid, long patientid, DateTime booktime) { book_info_table tbl = new book_info_table(); tbl.dentist_id = doctorid; tbl.patient_id = patientid; tbl.book_time = booktime; addBook(tbl); }
public void addBook(book_info_table book) { book.book_gen_time = DateTime.Now; db.book_info_table.InsertOnSubmit(book); db.SubmitChanges(); }