コード例 #1
0
ファイル: volAppClass.cs プロジェクト: resh2302/BRDHC-BkUp
 //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;
     }
 }
コード例 #2
0
 partial void Deletebrdhc_volunteerApp(brdhc_volunteerApp instance);
コード例 #3
0
 partial void Updatebrdhc_volunteerApp(brdhc_volunteerApp instance);
コード例 #4
0
 partial void Insertbrdhc_volunteerApp(brdhc_volunteerApp instance);