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

📄 dataset1.cs

📁 酒店管理系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
                rowrummeryRow.ItemArray = new object[] {
                        rummeryid,
                        rummeryname,
                        picture,
                        content,
                        star,
                        address,
                        telephone};
                this.Rows.Add(rowrummeryRow);
                return rowrummeryRow;
            }
            
            public rummeryRow FindByrummeryid(int rummeryid) {
                return ((rummeryRow)(this.Rows.Find(new object[] {
                            rummeryid})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                rummeryDataTable cln = ((rummeryDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new rummeryDataTable();
            }
            
            internal void InitVars() {
                this.columnrummeryid = this.Columns["rummeryid"];
                this.columnrummeryname = this.Columns["rummeryname"];
                this.columnpicture = this.Columns["picture"];
                this.columncontent = this.Columns["content"];
                this.columnstar = this.Columns["star"];
                this.columnaddress = this.Columns["address"];
                this.columntelephone = this.Columns["telephone"];
            }
            
            private void InitClass() {
                this.columnrummeryid = new DataColumn("rummeryid", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnrummeryid);
                this.columnrummeryname = new DataColumn("rummeryname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnrummeryname);
                this.columnpicture = new DataColumn("picture", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpicture);
                this.columncontent = new DataColumn("content", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columncontent);
                this.columnstar = new DataColumn("star", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnstar);
                this.columnaddress = new DataColumn("address", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnaddress);
                this.columntelephone = new DataColumn("telephone", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntelephone);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnrummeryid}, true));
                this.columnrummeryid.AllowDBNull = false;
                this.columnrummeryid.Unique = true;
                this.columnrummeryname.AllowDBNull = false;
            }
            
            public rummeryRow NewrummeryRow() {
                return ((rummeryRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new rummeryRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(rummeryRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.rummeryRowChanged != null)) {
                    this.rummeryRowChanged(this, new rummeryRowChangeEvent(((rummeryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.rummeryRowChanging != null)) {
                    this.rummeryRowChanging(this, new rummeryRowChangeEvent(((rummeryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.rummeryRowDeleted != null)) {
                    this.rummeryRowDeleted(this, new rummeryRowChangeEvent(((rummeryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.rummeryRowDeleting != null)) {
                    this.rummeryRowDeleting(this, new rummeryRowChangeEvent(((rummeryRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoverummeryRow(rummeryRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class rummeryRow : DataRow {
            
            private rummeryDataTable tablerummery;
            
            internal rummeryRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablerummery = ((rummeryDataTable)(this.Table));
            }
            
            public int rummeryid {
                get {
                    return ((int)(this[this.tablerummery.rummeryidColumn]));
                }
                set {
                    this[this.tablerummery.rummeryidColumn] = value;
                }
            }
            
            public string rummeryname {
                get {
                    return ((string)(this[this.tablerummery.rummerynameColumn]));
                }
                set {
                    this[this.tablerummery.rummerynameColumn] = value;
                }
            }
            
            public string picture {
                get {
                    try {
                        return ((string)(this[this.tablerummery.pictureColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablerummery.pictureColumn] = value;
                }
            }
            
            public string content {
                get {
                    try {
                        return ((string)(this[this.tablerummery.contentColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablerummery.contentColumn] = value;
                }
            }
            
            public string star {
                get {
                    try {
                        return ((string)(this[this.tablerummery.starColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablerummery.starColumn] = value;
                }
            }
            
            public string address {
                get {
                    try {
                        return ((string)(this[this.tablerummery.addressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablerummery.addressColumn] = value;
                }
            }
            
            public string telephone {
                get {
                    try {
                        return ((string)(this[this.tablerummery.telephoneColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablerummery.telephoneColumn] = value;
                }
            }
            
            public bool IspictureNull() {
                return this.IsNull(this.tablerummery.pictureColumn);
            }
            
            public void SetpictureNull() {
                this[this.tablerummery.pictureColumn] = System.Convert.DBNull;
            }
            
            public bool IscontentNull() {
                return this.IsNull(this.tablerummery.contentColumn);
            }
            
            public void SetcontentNull() {
                this[this.tablerummery.contentColumn] = System.Convert.DBNull;
            }
            
            public bool IsstarNull() {
                return this.IsNull(this.tablerummery.starColumn);
            }
            
            public void SetstarNull() {
                this[this.tablerummery.starColumn] = System.Convert.DBNull;
            }
            
            public bool IsaddressNull() {
                return this.IsNull(this.tablerummery.addressColumn);
            }
            
            public void SetaddressNull() {
                this[this.tablerummery.addressColumn] = System.Convert.DBNull;
            }
            
            public bool IstelephoneNull() {
                return this.IsNull(this.tablerummery.telephoneColumn);
            }
            
            public void SettelephoneNull() {
                this[this.tablerummery.telephoneColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class rummeryRowChangeEvent : EventArgs {
            
            private rummeryRow eventRow;
            
            private DataRowAction eventAction;
            
            public rummeryRowChangeEvent(rummeryRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public rummeryRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ciceroniDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnciceroniid;
            
            private DataColumn columnname;
            
            private DataColumn columnsex;
            
            private DataColumn columnage;
            
            private DataColumn columnpicture;
            
            private DataColumn columntelephone;
            
            private DataColumn columnlevel;
            
            internal ciceroniDataTable() : 
                    base("ciceroni") {
                this.InitClass();
            }
            
            internal ciceroniDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn ciceroniidColumn {
                get {
                    return this.columnciceroniid;
                }

⌨️ 快捷键说明

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