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

📄 dataset1.cs

📁 C#制作的小型图书馆管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
                    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 读者信息Row this[int index] {
                get {
                    return ((读者信息Row)(this.Rows[index]));
                }
            }
            
            public event 读者信息RowChangeEventHandler 读者信息RowChanged;
            
            public event 读者信息RowChangeEventHandler 读者信息RowChanging;
            
            public event 读者信息RowChangeEventHandler 读者信息RowDeleted;
            
            public event 读者信息RowChangeEventHandler 读者信息RowDeleting;
            
            public void Add读者信息Row(读者信息Row row) {
                this.Rows.Add(row);
            }
            
            public 读者信息Row Add读者信息Row(string 证号, string 读者姓名, int 已借书, string 性别, string 系名, string 年级) {
                读者信息Row row读者信息Row = ((读者信息Row)(this.NewRow()));
                row读者信息Row.ItemArray = new object[] {
                        证号,
                        读者姓名,
                        已借书,
                        性别,
                        系名,
                        年级};
                this.Rows.Add(row读者信息Row);
                return row读者信息Row;
            }
            
            public 读者信息Row FindBy证号(string 证号) {
                return ((读者信息Row)(this.Rows.Find(new object[] {
                            证号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                读者信息DataTable cln = ((读者信息DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 读者信息DataTable();
            }
            
            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(int), 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;
            }
            
            public 读者信息Row New读者信息Row() {
                return ((读者信息Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 读者信息Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(读者信息Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.读者信息RowChanged != null)) {
                    this.读者信息RowChanged(this, new 读者信息RowChangeEvent(((读者信息Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.读者信息RowChanging != null)) {
                    this.读者信息RowChanging(this, new 读者信息RowChangeEvent(((读者信息Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.读者信息RowDeleted != null)) {
                    this.读者信息RowDeleted(this, new 读者信息RowChangeEvent(((读者信息Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.读者信息RowDeleting != null)) {
                    this.读者信息RowDeleting(this, new 读者信息RowChangeEvent(((读者信息Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove读者信息Row(读者信息Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 读者信息Row : DataRow {
            
            private 读者信息DataTable table读者信息;
            
            internal 读者信息Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table读者信息 = ((读者信息DataTable)(this.Table));
            }
            
            public string 证号 {
                get {
                    return ((string)(this[this.table读者信息.证号Column]));
                }
                set {
                    this[this.table读者信息.证号Column] = value;
                }
            }
            
            public string 读者姓名 {
                get {
                    try {
                        return ((string)(this[this.table读者信息.读者姓名Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者信息.读者姓名Column] = value;
                }
            }
            
            public int 已借书 {
                get {
                    try {
                        return ((int)(this[this.table读者信息.已借书Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者信息.已借书Column] = value;
                }
            }
            
            public string 性别 {
                get {
                    try {
                        return ((string)(this[this.table读者信息.性别Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者信息.性别Column] = value;
                }
            }
            
            public string 系名 {
                get {
                    try {
                        return ((string)(this[this.table读者信息.系名Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者信息.系名Column] = value;
                }
            }
            
            public string 年级 {
                get {
                    try {
                        return ((string)(this[this.table读者信息.年级Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者信息.年级Column] = value;
                }
            }
            
            public bool Is读者姓名Null() {
                return this.IsNull(this.table读者信息.读者姓名Column);
            }
            
            public void Set读者姓名Null() {
                this[this.table读者信息.读者姓名Column] = System.Convert.DBNull;
            }
            
            public bool Is已借书Null() {
                return this.IsNull(this.table读者信息.已借书Column);
            }
            
            public void Set已借书Null() {
                this[this.table读者信息.已借书Column] = System.Convert.DBNull;
            }
            
            public bool Is性别Null() {
                return this.IsNull(this.table读者信息.性别Column);
            }
            
            public void Set性别Null() {
                this[this.table读者信息.性别Column] = System.Convert.DBNull;
            }
            
            public bool Is系名Null() {
                return this.IsNull(this.table读者信息.系名Column);
            }
            
            public void Set系名Null() {
                this[this.table读者信息.系名Column] = System.Convert.DBNull;
            }
            
            public bool Is年级Null() {
                return this.IsNull(this.table读者信息.年级Column);
            }
            
            public void Set年级Null() {
                this[this.table读者信息.年级Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 读者信息RowChangeEvent : EventArgs {
            
            private 读者信息Row eventRow;
            
            private DataRowAction eventAction;
            
            public 读者信息RowChangeEvent(读者信息Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 读者信息Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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