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(); } }
partial void UpdateSurveyInfo(SurveyInfo instance);
partial void DeleteSurveyInfo(SurveyInfo instance);
partial void InsertSurveyInfo(SurveyInfo instance);