コード例 #1
0
 //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;
     }
 }
コード例 #2
0
 partial void DeletendhCareer(ndhCareer instance);
コード例 #3
0
 partial void UpdatendhCareer(ndhCareer instance);
コード例 #4
0
 partial void InsertndhCareer(ndhCareer instance);