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

📄 readerresult.cs

📁 图书馆管理系统为方便读者
💻 CS
📖 第 1 页 / 共 2 页
字号:
                this.columnreadermemo = this.Columns["readermemo"];
            }
            
            private void InitClass() {
                this.columnreaderno = new DataColumn("readerno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreaderno);
                this.columnreadername = new DataColumn("readername", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreadername);
                this.columnreadersex = new DataColumn("readersex", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreadersex);
                this.columnreadertype = new DataColumn("readertype", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreadertype);
                this.columnreaderdep = new DataColumn("readerdep", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreaderdep);
                this.columnaddress = new DataColumn("address", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnaddress);
                this.columnreadertel = new DataColumn("readertel", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreadertel);
                this.columnemail = new DataColumn("email", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnemail);
                this.columncheckdate = new DataColumn("checkdate", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columncheckdate);
                this.columnreadermemo = new DataColumn("readermemo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnreadermemo);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnreaderno}, true));
                this.columnreaderno.AllowDBNull = false;
                this.columnreaderno.Unique = true;
                this.columnreadername.AllowDBNull = false;
            }
            
            public TreaderinfoRow NewTreaderinfoRow() {
                return ((TreaderinfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new TreaderinfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(TreaderinfoRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.TreaderinfoRowChanged != null)) {
                    this.TreaderinfoRowChanged(this, new TreaderinfoRowChangeEvent(((TreaderinfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.TreaderinfoRowChanging != null)) {
                    this.TreaderinfoRowChanging(this, new TreaderinfoRowChangeEvent(((TreaderinfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.TreaderinfoRowDeleted != null)) {
                    this.TreaderinfoRowDeleted(this, new TreaderinfoRowChangeEvent(((TreaderinfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.TreaderinfoRowDeleting != null)) {
                    this.TreaderinfoRowDeleting(this, new TreaderinfoRowChangeEvent(((TreaderinfoRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveTreaderinfoRow(TreaderinfoRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TreaderinfoRow : DataRow {
            
            private TreaderinfoDataTable tableTreaderinfo;
            
            internal TreaderinfoRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableTreaderinfo = ((TreaderinfoDataTable)(this.Table));
            }
            
            public string readerno {
                get {
                    return ((string)(this[this.tableTreaderinfo.readernoColumn]));
                }
                set {
                    this[this.tableTreaderinfo.readernoColumn] = value;
                }
            }
            
            public string readername {
                get {
                    return ((string)(this[this.tableTreaderinfo.readernameColumn]));
                }
                set {
                    this[this.tableTreaderinfo.readernameColumn] = value;
                }
            }
            
            public string readersex {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.readersexColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.readersexColumn] = value;
                }
            }
            
            public string readertype {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.readertypeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.readertypeColumn] = value;
                }
            }
            
            public string readerdep {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.readerdepColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.readerdepColumn] = value;
                }
            }
            
            public string address {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.addressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.addressColumn] = value;
                }
            }
            
            public string readertel {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.readertelColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.readertelColumn] = value;
                }
            }
            
            public string email {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.emailColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.emailColumn] = value;
                }
            }
            
            public string checkdate {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.checkdateColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.checkdateColumn] = value;
                }
            }
            
            public string readermemo {
                get {
                    try {
                        return ((string)(this[this.tableTreaderinfo.readermemoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreaderinfo.readermemoColumn] = value;
                }
            }
            
            public bool IsreadersexNull() {
                return this.IsNull(this.tableTreaderinfo.readersexColumn);
            }
            
            public void SetreadersexNull() {
                this[this.tableTreaderinfo.readersexColumn] = System.Convert.DBNull;
            }
            
            public bool IsreadertypeNull() {
                return this.IsNull(this.tableTreaderinfo.readertypeColumn);
            }
            
            public void SetreadertypeNull() {
                this[this.tableTreaderinfo.readertypeColumn] = System.Convert.DBNull;
            }
            
            public bool IsreaderdepNull() {
                return this.IsNull(this.tableTreaderinfo.readerdepColumn);
            }
            
            public void SetreaderdepNull() {
                this[this.tableTreaderinfo.readerdepColumn] = System.Convert.DBNull;
            }
            
            public bool IsaddressNull() {
                return this.IsNull(this.tableTreaderinfo.addressColumn);
            }
            
            public void SetaddressNull() {
                this[this.tableTreaderinfo.addressColumn] = System.Convert.DBNull;
            }
            
            public bool IsreadertelNull() {
                return this.IsNull(this.tableTreaderinfo.readertelColumn);
            }
            
            public void SetreadertelNull() {
                this[this.tableTreaderinfo.readertelColumn] = System.Convert.DBNull;
            }
            
            public bool IsemailNull() {
                return this.IsNull(this.tableTreaderinfo.emailColumn);
            }
            
            public void SetemailNull() {
                this[this.tableTreaderinfo.emailColumn] = System.Convert.DBNull;
            }
            
            public bool IscheckdateNull() {
                return this.IsNull(this.tableTreaderinfo.checkdateColumn);
            }
            
            public void SetcheckdateNull() {
                this[this.tableTreaderinfo.checkdateColumn] = System.Convert.DBNull;
            }
            
            public bool IsreadermemoNull() {
                return this.IsNull(this.tableTreaderinfo.readermemoColumn);
            }
            
            public void SetreadermemoNull() {
                this[this.tableTreaderinfo.readermemoColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TreaderinfoRowChangeEvent : EventArgs {
            
            private TreaderinfoRow eventRow;
            
            private DataRowAction eventAction;
            
            public TreaderinfoRowChangeEvent(TreaderinfoRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public TreaderinfoRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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