public void addRecord() { appointment newAppt = new appointment(); newAppt.FacultyID = 109; newAppt.FromTime = new DateTime(2016, 4, 28, 8, 0, 0); myDB.appointments.InsertOnSubmit(newAppt); myDB.SubmitChanges(); }
partial void Deleteappointment(appointment instance);
partial void Updateappointment(appointment instance);
partial void Insertappointment(appointment instance);