コード例 #1
0
    public DefectsDataSet GetAllDefects()
    {
        DefectsDataSetTableAdapters.DefectsTableAdapter defectsTableAdapter = new DefectsDataSetTableAdapters.DefectsTableAdapter();
        DefectsDataSet defectsDataSet = new DefectsDataSet();

        defectsDataSet.EnforceConstraints = false;
        defectsTableAdapter.Fill(defectsDataSet.Defects);
        return(defectsDataSet);
    }
コード例 #2
0
 public void DeleteDefect(int origDefectId)
 {
     DefectsDataSetTableAdapters.DefectsTableAdapter defectsTableAdapter = new DefectsDataSetTableAdapters.DefectsTableAdapter();
     defectsTableAdapter.Delete(origDefectId);
 }
コード例 #3
0
 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);
 }