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

📄 dataset1.cs

📁 招聘考试成绩管理系统,自己做的,C#的,我的软件工程作业
💻 CS
📖 第 1 页 / 共 5 页
字号:
                }
            }
            
            internal DataColumn 准考证号Column {
                get {
                    return this.column准考证号;
                }
            }
            
            internal DataColumn 姓名Column {
                get {
                    return this.column姓名;
                }
            }
            
            internal DataColumn 性别Column {
                get {
                    return this.column性别;
                }
            }
            
            internal DataColumn 生日Column {
                get {
                    return this.column生日;
                }
            }
            
            internal DataColumn 地址Column {
                get {
                    return this.column地址;
                }
            }
            
            internal DataColumn 身份证Column {
                get {
                    return this.column身份证;
                }
            }
            
            internal DataColumn 电话Column {
                get {
                    return this.column电话;
                }
            }
            
            public vstudentRow this[int index] {
                get {
                    return ((vstudentRow)(this.Rows[index]));
                }
            }
            
            public event vstudentRowChangeEventHandler vstudentRowChanged;
            
            public event vstudentRowChangeEventHandler vstudentRowChanging;
            
            public event vstudentRowChangeEventHandler vstudentRowDeleted;
            
            public event vstudentRowChangeEventHandler vstudentRowDeleting;
            
            public void AddvstudentRow(vstudentRow row) {
                this.Rows.Add(row);
            }
            
            public vstudentRow AddvstudentRow(string 准考证号, string 姓名, string 性别, string 生日, string 地址, string 身份证, string 电话) {
                vstudentRow rowvstudentRow = ((vstudentRow)(this.NewRow()));
                rowvstudentRow.ItemArray = new object[] {
                        准考证号,
                        姓名,
                        性别,
                        生日,
                        地址,
                        身份证,
                        电话};
                this.Rows.Add(rowvstudentRow);
                return rowvstudentRow;
            }
            
            public vstudentRow FindBy准考证号(string 准考证号) {
                return ((vstudentRow)(this.Rows.Find(new object[] {
                            准考证号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                vstudentDataTable cln = ((vstudentDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new vstudentDataTable();
            }
            
            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["身份证"];
                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(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(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(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column电话);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.column准考证号}, true));
                this.column准考证号.AllowDBNull = false;
                this.column准考证号.Unique = true;
                this.column姓名.AllowDBNull = false;
                this.column性别.AllowDBNull = false;
                this.column身份证.AllowDBNull = false;
            }
            
            public vstudentRow NewvstudentRow() {
                return ((vstudentRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new vstudentRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(vstudentRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.vstudentRowChanged != null)) {
                    this.vstudentRowChanged(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.vstudentRowChanging != null)) {
                    this.vstudentRowChanging(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.vstudentRowDeleted != null)) {
                    this.vstudentRowDeleted(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.vstudentRowDeleting != null)) {
                    this.vstudentRowDeleting(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovevstudentRow(vstudentRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class vstudentRow : DataRow {
            
            private vstudentDataTable tablevstudent;
            
            internal vstudentRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablevstudent = ((vstudentDataTable)(this.Table));
            }
            
            public string 准考证号 {
                get {
                    return ((string)(this[this.tablevstudent.准考证号Column]));
                }
                set {
                    this[this.tablevstudent.准考证号Column] = value;
                }
            }
            
            public string 姓名 {
                get {
                    return ((string)(this[this.tablevstudent.姓名Column]));
                }
                set {
                    this[this.tablevstudent.姓名Column] = value;
                }
            }
            
            public string 性别 {
                get {
                    return ((string)(this[this.tablevstudent.性别Column]));
                }
                set {
                    this[this.tablevstudent.性别Column] = value;
                }
            }
            
            public string 生日 {
                get {
                    try {
                        return ((string)(this[this.tablevstudent.生日Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablevstudent.生日Column] = value;
                }
            }
            
            public string 地址 {
                get {
                    try {
                        return ((string)(this[this.tablevstudent.地址Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablevstudent.地址Column] = value;
                }
            }
            
            public string 身份证 {
                get {
                    return ((string)(this[this.tablevstudent.身份证Column]));
                }
                set {
                    this[this.tablevstudent.身份证Column] = value;
                }
            }
            
            public string 电话 {
                get {
                    try {
                        return ((string)(this[this.tablevstudent.电话Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablevstudent.电话Column] = value;
                }
            }
            
            public bool Is生日Null() {
                return this.IsNull(this.tablevstudent.生日Column);
            }
            
            public void Set生日Null() {
                this[this.tablevstudent.生日Column] = System.Convert.DBNull;
            }
            
            public bool Is地址Null() {
                return this.IsNull(this.tablevstudent.地址Column);
            }
            
            public void Set地址Null() {
                this[this.tablevstudent.地址Column] = System.Convert.DBNull;
            }
            
            public bool Is电话Null() {
                return this.IsNull(this.tablevstudent.电话Column);
            }
            
            public void Set电话Null() {
                this[this.tablevstudent.电话Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class vstudentRowChangeEvent : EventArgs {
            
            private vstudentRow eventRow;
            
            private DataRowAction eventAction;
            
            public vstudentRowChangeEvent(vstudentRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public vstudentRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class _TableDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn column准考证号;
            
            private DataColumn column姓名;
            
            private DataColumn column英语;
            
            private DataColumn column语文;
            
            private DataColumn column政治;
            
            private DataColumn column总分;
            
            internal _TableDataTable() : 
                    base("Table") {

⌨️ 快捷键说明

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