Exemplo n.º 1
0
 private void ExportData(string path)
 {
     using (var connection = new SqlCeConnection("Data Source = " + path))
     {
         DefaultDB  db   = new DefaultDB(connection);
         SurveyInfo info = new SurveyInfo()
         {
             SurveyName  = txtSurveyName.Text,
             Description = txtSurveyDescription.Text
         };
         db.SurveyInfo.InsertOnSubmit(info);
         db.Interviewers.InsertAllOnSubmit(_interviewers);
         db.Questions.InsertAllOnSubmit(_questions);
         db.SubmitChanges();
     }
 }
Exemplo n.º 2
0
 partial void UpdateSurveyInfo(SurveyInfo instance);
Exemplo n.º 3
0
 partial void DeleteSurveyInfo(SurveyInfo instance);
Exemplo n.º 4
0
 partial void InsertSurveyInfo(SurveyInfo instance);