⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset_xyxk.cs

📁 一个很简单的考试系统。实用性很强啊!数据库在里面
💻 CS
📖 第 1 页 / 共 3 页
字号:
            }
            
            public string sub_name {
                get {
                    try {
                        return ((string)(this[this.tablesubject.sub_nameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablesubject.sub_nameColumn] = value;
                }
            }
            
            public bool Issub_noNull() {
                return this.IsNull(this.tablesubject.sub_noColumn);
            }
            
            public void Setsub_noNull() {
                this[this.tablesubject.sub_noColumn] = System.Convert.DBNull;
            }
            
            public bool Issub_nameNull() {
                return this.IsNull(this.tablesubject.sub_nameColumn);
            }
            
            public void Setsub_nameNull() {
                this[this.tablesubject.sub_nameColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class subjectRowChangeEvent : EventArgs {
            
            private subjectRow eventRow;
            
            private DataRowAction eventAction;
            
            public subjectRowChangeEvent(subjectRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public subjectRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class specialityDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnspe_no;
            
            private DataColumn columnsub_no;
            
            private DataColumn columnspe_name;
            
            internal specialityDataTable() : 
                    base("speciality") {
                this.InitClass();
            }
            
            internal specialityDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn spe_noColumn {
                get {
                    return this.columnspe_no;
                }
            }
            
            internal DataColumn sub_noColumn {
                get {
                    return this.columnsub_no;
                }
            }
            
            internal DataColumn spe_nameColumn {
                get {
                    return this.columnspe_name;
                }
            }
            
            public specialityRow this[int index] {
                get {
                    return ((specialityRow)(this.Rows[index]));
                }
            }
            
            public event specialityRowChangeEventHandler specialityRowChanged;
            
            public event specialityRowChangeEventHandler specialityRowChanging;
            
            public event specialityRowChangeEventHandler specialityRowDeleted;
            
            public event specialityRowChangeEventHandler specialityRowDeleting;
            
            public void AddspecialityRow(specialityRow row) {
                this.Rows.Add(row);
            }
            
            public specialityRow AddspecialityRow(int spe_no, int sub_no, string spe_name) {
                specialityRow rowspecialityRow = ((specialityRow)(this.NewRow()));
                rowspecialityRow.ItemArray = new object[] {
                        spe_no,
                        sub_no,
                        spe_name};
                this.Rows.Add(rowspecialityRow);
                return rowspecialityRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                specialityDataTable cln = ((specialityDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new specialityDataTable();
            }
            
            internal void InitVars() {
                this.columnspe_no = this.Columns["spe_no"];
                this.columnsub_no = this.Columns["sub_no"];
                this.columnspe_name = this.Columns["spe_name"];
            }
            
            private void InitClass() {
                this.columnspe_no = new DataColumn("spe_no", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnspe_no);
                this.columnsub_no = new DataColumn("sub_no", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnsub_no);
                this.columnspe_name = new DataColumn("spe_name", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnspe_name);
            }
            
            public specialityRow NewspecialityRow() {
                return ((specialityRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new specialityRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(specialityRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.specialityRowChanged != null)) {
                    this.specialityRowChanged(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.specialityRowChanging != null)) {
                    this.specialityRowChanging(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.specialityRowDeleted != null)) {
                    this.specialityRowDeleted(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.specialityRowDeleting != null)) {
                    this.specialityRowDeleting(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovespecialityRow(specialityRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class specialityRow : DataRow {
            
            private specialityDataTable tablespeciality;
            
            internal specialityRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablespeciality = ((specialityDataTable)(this.Table));
            }
            
            public int spe_no {
                get {
                    try {
                        return ((int)(this[this.tablespeciality.spe_noColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablespeciality.spe_noColumn] = value;
                }
            }
            
            public int sub_no {
                get {
                    try {
                        return ((int)(this[this.tablespeciality.sub_noColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablespeciality.sub_noColumn] = value;
                }
            }
            
            public string spe_name {
                get {
                    try {
                        return ((string)(this[this.tablespeciality.spe_nameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablespeciality.spe_nameColumn] = value;
                }
            }
            
            public bool Isspe_noNull() {
                return this.IsNull(this.tablespeciality.spe_noColumn);
            }
            
            public void Setspe_noNull() {
                this[this.tablespeciality.spe_noColumn] = System.Convert.DBNull;
            }
            
            public bool Issub_noNull() {
                return this.IsNull(this.tablespeciality.sub_noColumn);
            }
            
            public void Setsub_noNull() {
                this[this.tablespeciality.sub_noColumn] = System.Convert.DBNull;
            }
            
            public bool Isspe_nameNull() {
                return this.IsNull(this.tablespeciality.spe_nameColumn);
            }
            
            public void Setspe_nameNull() {
                this[this.tablespeciality.spe_nameColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class specialityRowChangeEvent : EventArgs {
            
            private specialityRow eventRow;
            
            private DataRowAction eventAction;
            
            public specialityRowChangeEvent(specialityRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public specialityRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class CourseDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columncou_no;
            
            private DataColumn columncou_name;
            
            internal CourseDataTable() : 
                    base("Course") {
                this.InitClass();
            }
            
            internal CourseDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn cou_noColumn {
                get {
                    return this.columncou_no;
                }
            }
            
            internal DataColumn cou_nameColumn {
                get {
                    return this.columncou_name;
                }
            }
            
            public CourseRow this[int index] {
                get {
                    return ((CourseRow)(this.Rows[index]));
                }
            }
            
            public event CourseRowChangeEventHandler CourseRowChanged;
            
            public event CourseRowChangeEventHandler CourseRowChanging;
            
            public event CourseRowChangeEventHandler CourseRowDeleted;
            
            public event CourseRowChangeEventHandler CourseRowDeleting;
            
            public void AddCourseRow(CourseRow row) {
                this.Rows.Add(row);
            }
            
            public CourseRow AddCourseRow(System.Double cou_no, string cou_name) {
                CourseRow rowCourseRow = ((CourseRow)(this.NewRow()));
                rowCourseRow.ItemArray = new object[] {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -