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

📄 dataset2.cs

📁 成绩查询系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
                _1999DataTable cln = ((_1999DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new _1999DataTable();
            }
            
            internal void InitVars() {
                this.column学号 = this.Columns["学号"];
                this.column科目 = this.Columns["科目"];
                this.column考试 = this.Columns["考试"];
                this.column考查 = this.Columns["考查"];
                this.column学分 = this.Columns["学分"];
                this.column补考 = this.Columns["补考"];
            }
            
            private void InitClass() {
                this.column学号 = new DataColumn("学号", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column学号);
                this.column科目 = new DataColumn("科目", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column科目);
                this.column考试 = new DataColumn("考试", typeof(short), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column考试);
                this.column考查 = new DataColumn("考查", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column考查);
                this.column学分 = new DataColumn("学分", typeof(short), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column学分);
                this.column补考 = new DataColumn("补考", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column补考);
            }
            
            public _1999Row New_1999Row() {
                return ((_1999Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new _1999Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(_1999Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this._1999RowChanged != null)) {
                    this._1999RowChanged(this, new _1999RowChangeEvent(((_1999Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this._1999RowChanging != null)) {
                    this._1999RowChanging(this, new _1999RowChangeEvent(((_1999Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this._1999RowDeleted != null)) {
                    this._1999RowDeleted(this, new _1999RowChangeEvent(((_1999Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this._1999RowDeleting != null)) {
                    this._1999RowDeleting(this, new _1999RowChangeEvent(((_1999Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove_1999Row(_1999Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class _1999Row : DataRow {
            
            private _1999DataTable table_1999;
            
            internal _1999Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table_1999 = ((_1999DataTable)(this.Table));
            }
            
            public string 学号 {
                get {
                    try {
                        return ((string)(this[this.table_1999.学号Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.学号Column] = value;
                }
            }
            
            public string 科目 {
                get {
                    try {
                        return ((string)(this[this.table_1999.科目Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.科目Column] = value;
                }
            }
            
            public short 考试 {
                get {
                    try {
                        return ((short)(this[this.table_1999.考试Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.考试Column] = value;
                }
            }
            
            public string 考查 {
                get {
                    try {
                        return ((string)(this[this.table_1999.考查Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.考查Column] = value;
                }
            }
            
            public short 学分 {
                get {
                    try {
                        return ((short)(this[this.table_1999.学分Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.学分Column] = value;
                }
            }
            
            public string 补考 {
                get {
                    try {
                        return ((string)(this[this.table_1999.补考Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table_1999.补考Column] = value;
                }
            }
            
            public bool Is学号Null() {
                return this.IsNull(this.table_1999.学号Column);
            }
            
            public void Set学号Null() {
                this[this.table_1999.学号Column] = System.Convert.DBNull;
            }
            
            public bool Is科目Null() {
                return this.IsNull(this.table_1999.科目Column);
            }
            
            public void Set科目Null() {
                this[this.table_1999.科目Column] = System.Convert.DBNull;
            }
            
            public bool Is考试Null() {
                return this.IsNull(this.table_1999.考试Column);
            }
            
            public void Set考试Null() {
                this[this.table_1999.考试Column] = System.Convert.DBNull;
            }
            
            public bool Is考查Null() {
                return this.IsNull(this.table_1999.考查Column);
            }
            
            public void Set考查Null() {
                this[this.table_1999.考查Column] = System.Convert.DBNull;
            }
            
            public bool Is学分Null() {
                return this.IsNull(this.table_1999.学分Column);
            }
            
            public void Set学分Null() {
                this[this.table_1999.学分Column] = System.Convert.DBNull;
            }
            
            public bool Is补考Null() {
                return this.IsNull(this.table_1999.补考Column);
            }
            
            public void Set补考Null() {
                this[this.table_1999.补考Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class _1999RowChangeEvent : EventArgs {
            
            private _1999Row eventRow;
            
            private DataRowAction eventAction;
            
            public _1999RowChangeEvent(_1999Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public _1999Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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