//THIS IS AN INSERT public bool commitInsert(string _firstName, string _lastName, string _phone, string _email, string _address, string _occupation, string _student, string _prevExp, string _whyVol) { volApplicationClassDataContext objApp = new volApplicationClassDataContext(); try { brdhc_volunteerApp objNewApp = new brdhc_volunteerApp(); objNewApp.firstName = _firstName; objNewApp.lastName = _lastName; objNewApp.phone = _phone; objNewApp.email = _email; objNewApp.address = _address; objNewApp.occupation = _occupation; objNewApp.student = _student; objNewApp.prevExp = _prevExp; objNewApp.whyVol = _whyVol; objApp.brdhc_volunteerApps.InsertOnSubmit(objNewApp); objApp.SubmitChanges(); //this will commit the changes return true; //boolean } catch (Exception e) { clsCommon.saveError(e); return false; } }
partial void Deletebrdhc_volunteerApp(brdhc_volunteerApp instance);
partial void Updatebrdhc_volunteerApp(brdhc_volunteerApp instance);
partial void Insertbrdhc_volunteerApp(brdhc_volunteerApp instance);