//inserts new career posting public bool commitInsert(string _title, string _location, DateTime _date, string _dept, string _shift, string _hours, string _desc, string _wage) { DataClassesDataContext objDataClassesDC = new DataClassesDataContext(); using (objDataClassesDC) { ndhCareer objNewPost = new ndhCareer(); objNewPost.title = _title; objNewPost.location = _location; objNewPost.date = _date; objNewPost.department = _dept; objNewPost.shift = _shift; objNewPost.hours = _hours; objNewPost.description = _desc; objNewPost.wage = _wage; //insert command objDataClassesDC.ndhCareers.InsertOnSubmit(objNewPost); //commits insert against database objDataClassesDC.SubmitChanges(); return true; } }
partial void DeletendhCareer(ndhCareer instance);
partial void UpdatendhCareer(ndhCareer instance);
partial void InsertndhCareer(ndhCareer instance);