public DefectsDataSet GetAllDefects() { DefectsDataSetTableAdapters.DefectsTableAdapter defectsTableAdapter = new DefectsDataSetTableAdapters.DefectsTableAdapter(); DefectsDataSet defectsDataSet = new DefectsDataSet(); defectsDataSet.EnforceConstraints = false; defectsTableAdapter.Fill(defectsDataSet.Defects); return(defectsDataSet); }
public void DeleteDefect(int origDefectId) { DefectsDataSetTableAdapters.DefectsTableAdapter defectsTableAdapter = new DefectsDataSetTableAdapters.DefectsTableAdapter(); defectsTableAdapter.Delete(origDefectId); }
public void UpdateDefect(string testerId, string defectTitle, string defectDescription, string notes, bool isFixed, bool isPostponed, DateTime dateCreated, DateTime dateFixed, int origDefectId) { DefectsDataSetTableAdapters.DefectsTableAdapter defectsTableAdapter = new DefectsDataSetTableAdapters.DefectsTableAdapter(); defectsTableAdapter.Update(testerId, defectTitle, defectDescription, notes, isFixed, isPostponed, dateCreated, dateFixed, origDefectId); }