コード例 #1
0
 public int Delete()
 {
     int result = TableData.DeleteByColumnValues("Group", "StudentProgressDB",
            new List<string>() { "GroupID" },
            new List<string>() { this.Id.ToString() });
     if (result > 0)
         Group.Items.Remove(this.Id);
     return result;
 }
コード例 #2
0
ファイル: Student.cs プロジェクト: JohnKarnel/StudentProgress
        public int Delete()
        {
            int result = TableData.DeleteByColumnValues("Student", "StudentProgressDB",
                                                        new List <string>()
            {
                "StudentID"
            },
                                                        new List <string>()
            {
                this.Id.ToString()
            });

            if (result > 0)
            {
                Subject.Items.Remove(this.Id);
            }
            return(result);
        }