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

📄 dataset3.cs

📁 《学籍管理系统》 “c# WinForm 数据库操作的简单范例 (SQL Server 2000)”
💻 CS
📖 第 1 页 / 共 2 页
字号:
                }
            }
            
            public event User_OperateInfoRowChangeEventHandler User_OperateInfoRowChanged;
            
            public event User_OperateInfoRowChangeEventHandler User_OperateInfoRowChanging;
            
            public event User_OperateInfoRowChangeEventHandler User_OperateInfoRowDeleted;
            
            public event User_OperateInfoRowChangeEventHandler User_OperateInfoRowDeleting;
            
            public void AddUser_OperateInfoRow(User_OperateInfoRow row) {
                this.Rows.Add(row);
            }
            
            public User_OperateInfoRow AddUser_OperateInfoRow(string username, System.DateTime datatime, string operatelist) {
                User_OperateInfoRow rowUser_OperateInfoRow = ((User_OperateInfoRow)(this.NewRow()));
                rowUser_OperateInfoRow.ItemArray = new object[] {
                        username,
                        datatime,
                        operatelist};
                this.Rows.Add(rowUser_OperateInfoRow);
                return rowUser_OperateInfoRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                User_OperateInfoDataTable cln = ((User_OperateInfoDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new User_OperateInfoDataTable();
            }
            
            internal void InitVars() {
                this.columnusername = this.Columns["username"];
                this.columndatatime = this.Columns["datatime"];
                this.columnoperatelist = this.Columns["operatelist"];
            }
            
            private void InitClass() {
                this.columnusername = new DataColumn("username", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnusername);
                this.columndatatime = new DataColumn("datatime", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columndatatime);
                this.columnoperatelist = new DataColumn("operatelist", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnoperatelist);
                this.columnusername.AllowDBNull = false;
            }
            
            public User_OperateInfoRow NewUser_OperateInfoRow() {
                return ((User_OperateInfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new User_OperateInfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(User_OperateInfoRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.User_OperateInfoRowChanged != null)) {
                    this.User_OperateInfoRowChanged(this, new User_OperateInfoRowChangeEvent(((User_OperateInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.User_OperateInfoRowChanging != null)) {
                    this.User_OperateInfoRowChanging(this, new User_OperateInfoRowChangeEvent(((User_OperateInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.User_OperateInfoRowDeleted != null)) {
                    this.User_OperateInfoRowDeleted(this, new User_OperateInfoRowChangeEvent(((User_OperateInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.User_OperateInfoRowDeleting != null)) {
                    this.User_OperateInfoRowDeleting(this, new User_OperateInfoRowChangeEvent(((User_OperateInfoRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveUser_OperateInfoRow(User_OperateInfoRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class User_OperateInfoRow : DataRow {
            
            private User_OperateInfoDataTable tableUser_OperateInfo;
            
            internal User_OperateInfoRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableUser_OperateInfo = ((User_OperateInfoDataTable)(this.Table));
            }
            
            public string username {
                get {
                    return ((string)(this[this.tableUser_OperateInfo.usernameColumn]));
                }
                set {
                    this[this.tableUser_OperateInfo.usernameColumn] = value;
                }
            }
            
            public System.DateTime datatime {
                get {
                    try {
                        return ((System.DateTime)(this[this.tableUser_OperateInfo.datatimeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUser_OperateInfo.datatimeColumn] = value;
                }
            }
            
            public string operatelist {
                get {
                    try {
                        return ((string)(this[this.tableUser_OperateInfo.operatelistColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUser_OperateInfo.operatelistColumn] = value;
                }
            }
            
            public bool IsdatatimeNull() {
                return this.IsNull(this.tableUser_OperateInfo.datatimeColumn);
            }
            
            public void SetdatatimeNull() {
                this[this.tableUser_OperateInfo.datatimeColumn] = System.Convert.DBNull;
            }
            
            public bool IsoperatelistNull() {
                return this.IsNull(this.tableUser_OperateInfo.operatelistColumn);
            }
            
            public void SetoperatelistNull() {
                this[this.tableUser_OperateInfo.operatelistColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class User_OperateInfoRowChangeEvent : EventArgs {
            
            private User_OperateInfoRow eventRow;
            
            private DataRowAction eventAction;
            
            public User_OperateInfoRowChangeEvent(User_OperateInfoRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public User_OperateInfoRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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