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

📄 dataset1.cs

📁 学生公寓管理系统使用说明: 1.服务器运行环境 SQL 2000 .NET FRAMEWORK 1.1 .NET FRAMEWORK 1.1 CHINESE (SIMPL
💻 CS
📖 第 1 页 / 共 4 页
字号:
                this.columnStudent_Postion = this.Columns["Student_Postion"];
                this.columnRoom_ID = this.Columns["Room_ID"];
                this.columnStudent_Email = this.Columns["Student_Email"];
                this.columnStudent_LiveCost = this.Columns["Student_LiveCost"];
                this.columnStudent_StudyCost = this.Columns["Student_StudyCost"];
                this.columnStudent_Address = this.Columns["Student_Address"];
                this.columnStudent_Phone = this.Columns["Student_Phone"];
            }
            
            private void InitClass() {
                this.columnStudent_ID = new DataColumn("Student_ID", typeof(long), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_ID);
                this.columnStudent_Name = new DataColumn("Student_Name", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Name);
                this.columnStudent_Password = new DataColumn("Student_Password", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Password);
                this.columnStudent_Birth = new DataColumn("Student_Birth", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Birth);
                this.columnStudent_Sex = new DataColumn("Student_Sex", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Sex);
                this.columnStudent_Photo = new DataColumn("Student_Photo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Photo);
                this.columnStudent_Depart = new DataColumn("Student_Depart", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Depart);
                this.columnStudent_Course = new DataColumn("Student_Course", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Course);
                this.columnStudent_Postion = new DataColumn("Student_Postion", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Postion);
                this.columnRoom_ID = new DataColumn("Room_ID", typeof(long), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRoom_ID);
                this.columnStudent_Email = new DataColumn("Student_Email", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Email);
                this.columnStudent_LiveCost = new DataColumn("Student_LiveCost", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_LiveCost);
                this.columnStudent_StudyCost = new DataColumn("Student_StudyCost", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_StudyCost);
                this.columnStudent_Address = new DataColumn("Student_Address", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Address);
                this.columnStudent_Phone = new DataColumn("Student_Phone", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStudent_Phone);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnStudent_ID}, true));
                this.columnStudent_ID.AllowDBNull = false;
                this.columnStudent_ID.Unique = true;
                this.columnStudent_Name.AllowDBNull = false;
                this.columnStudent_Sex.AllowDBNull = false;
                this.columnStudent_Depart.AllowDBNull = false;
                this.columnStudent_Course.AllowDBNull = false;
            }
            
            public StudentRow NewStudentRow() {
                return ((StudentRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new StudentRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(StudentRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.StudentRowChanged != null)) {
                    this.StudentRowChanged(this, new StudentRowChangeEvent(((StudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.StudentRowChanging != null)) {
                    this.StudentRowChanging(this, new StudentRowChangeEvent(((StudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.StudentRowDeleted != null)) {
                    this.StudentRowDeleted(this, new StudentRowChangeEvent(((StudentRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.StudentRowDeleting != null)) {
                    this.StudentRowDeleting(this, new StudentRowChangeEvent(((StudentRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveStudentRow(StudentRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class StudentRow : DataRow {
            
            private StudentDataTable tableStudent;
            
            internal StudentRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableStudent = ((StudentDataTable)(this.Table));
            }
            
            public long Student_ID {
                get {
                    return ((long)(this[this.tableStudent.Student_IDColumn]));
                }
                set {
                    this[this.tableStudent.Student_IDColumn] = value;
                }
            }
            
            public string Student_Name {
                get {
                    return ((string)(this[this.tableStudent.Student_NameColumn]));
                }
                set {
                    this[this.tableStudent.Student_NameColumn] = value;
                }
            }
            
            public string Student_Password {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_PasswordColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_PasswordColumn] = value;
                }
            }
            
            public string Student_Birth {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_BirthColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_BirthColumn] = value;
                }
            }
            
            public string Student_Sex {
                get {
                    return ((string)(this[this.tableStudent.Student_SexColumn]));
                }
                set {
                    this[this.tableStudent.Student_SexColumn] = value;
                }
            }
            
            public string Student_Photo {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_PhotoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_PhotoColumn] = value;
                }
            }
            
            public string Student_Depart {
                get {
                    return ((string)(this[this.tableStudent.Student_DepartColumn]));
                }
                set {
                    this[this.tableStudent.Student_DepartColumn] = value;
                }
            }
            
            public string Student_Course {
                get {
                    return ((string)(this[this.tableStudent.Student_CourseColumn]));
                }
                set {
                    this[this.tableStudent.Student_CourseColumn] = value;
                }
            }
            
            public string Student_Postion {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_PostionColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_PostionColumn] = value;
                }
            }
            
            public long Room_ID {
                get {
                    try {
                        return ((long)(this[this.tableStudent.Room_IDColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Room_IDColumn] = value;
                }
            }
            
            public string Student_Email {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_EmailColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_EmailColumn] = value;
                }
            }
            
            public System.Decimal Student_LiveCost {
                get {
                    try {
                        return ((System.Decimal)(this[this.tableStudent.Student_LiveCostColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_LiveCostColumn] = value;
                }
            }
            
            public System.Decimal Student_StudyCost {
                get {
                    try {
                        return ((System.Decimal)(this[this.tableStudent.Student_StudyCostColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_StudyCostColumn] = value;
                }
            }
            
            public string Student_Address {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_AddressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_AddressColumn] = value;
                }
            }
            
            public string Student_Phone {
                get {
                    try {
                        return ((string)(this[this.tableStudent.Student_PhoneColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableStudent.Student_PhoneColumn] = value;
                }
            }
            
            public bool IsStudent_PasswordNull() {
                return this.IsNull(this.tableStudent.Student_PasswordColumn);
            }
            
            public void SetStudent_PasswordNull() {
                this[this.tableStudent.Student_PasswordColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_BirthNull() {
                return this.IsNull(this.tableStudent.Student_BirthColumn);
            }
            
            public void SetStudent_BirthNull() {
                this[this.tableStudent.Student_BirthColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_PhotoNull() {
                return this.IsNull(this.tableStudent.Student_PhotoColumn);
            }
            
            public void SetStudent_PhotoNull() {
                this[this.tableStudent.Student_PhotoColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_PostionNull() {
                return this.IsNull(this.tableStudent.Student_PostionColumn);
            }
            
            public void SetStudent_PostionNull() {
                this[this.tableStudent.Student_PostionColumn] = System.Convert.DBNull;
            }
            
            public bool IsRoom_IDNull() {
                return this.IsNull(this.tableStudent.Room_IDColumn);
            }
            
            public void SetRoom_IDNull() {
                this[this.tableStudent.Room_IDColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_EmailNull() {
                return this.IsNull(this.tableStudent.Student_EmailColumn);
            }
            
            public void SetStudent_EmailNull() {
                this[this.tableStudent.Student_EmailColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_LiveCostNull() {
                return this.IsNull(this.tableStudent.Student_LiveCostColumn);
            }
            
            public void SetStudent_LiveCostNull() {
                this[this.tableStudent.Student_LiveCostColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_StudyCostNull() {
                return this.IsNull(this.tableStudent.Student_StudyCostColumn);
            }
            
            public void SetStudent_StudyCostNull() {
                this[this.tableStudent.Student_StudyCostColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_AddressNull() {
                return this.IsNull(this.tableStudent.Student_AddressColumn);
            }
            
            public void SetStudent_AddressNull() {
                this[this.tableStudent.Student_AddressColumn] = System.Convert.DBNull;
            }
            
            public bool IsStudent_PhoneNull() {
                return this.IsNull(this.tableStudent.Student_PhoneColumn);
            }
            

⌨️ 快捷键说明

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