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

📄 dataset1.cs

📁 网上购物中介
💻 CS
📖 第 1 页 / 共 4 页
字号:
            }
            
            public override DataTable Clone() {
                会员DataTable cln = ((会员DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 会员DataTable();
            }
            
            internal void InitVars() {
                this.columnE_mail = this.Columns["E_mail"];
                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["用户名"];
                this.column职业 = this.Columns["职业"];
            }
            
            private void InitClass() {
                this.columnE_mail = new DataColumn("E_mail", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnE_mail);
                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(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(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.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 E_mail {
                get {
                    try {
                        return ((string)(this[this.table会员.E_mailColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table会员.E_mailColumn] = 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 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 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 {
                    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 bool IsE_mailNull() {
                return this.IsNull(this.table会员.E_mailColumn);
            }
            
            public void SetE_mailNull() {
                this[this.table会员.E_mailColumn] = 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;
            }
            
            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;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 提供商DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnID;
            
            private DataColumn column备注;
            
            private DataColumn column地址;
            
            private DataColumn column电话;
            
            private DataColumn column联系人;
            
            private DataColumn column名称;
            
            private DataColumn column提供类别;
            
            internal 提供商DataTable() : 
                    base("提供商") {

⌨️ 快捷键说明

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