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

📄 dataset4.cs

📁 酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                lineDataTable cln = ((lineDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new lineDataTable();
            }
            
            internal void InitVars() {
                this.columnlineid = this.Columns["lineid"];
                this.columnlinename = this.Columns["linename"];
                this.columnlineprice = this.Columns["lineprice"];
                this.columndatatime = this.Columns["datatime"];
                this.columnjourney = this.Columns["journey"];
                this.columnpicture = this.Columns["picture"];
            }
            
            private void InitClass() {
                this.columnlineid = new DataColumn("lineid", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnlineid);
                this.columnlinename = new DataColumn("linename", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnlinename);
                this.columnlineprice = new DataColumn("lineprice", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnlineprice);
                this.columndatatime = new DataColumn("datatime", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columndatatime);
                this.columnjourney = new DataColumn("journey", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnjourney);
                this.columnpicture = new DataColumn("picture", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpicture);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnlineid}, true));
                this.columnlineid.AllowDBNull = false;
                this.columnlineid.Unique = true;
            }
            
            public lineRow NewlineRow() {
                return ((lineRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new lineRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(lineRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.lineRowChanged != null)) {
                    this.lineRowChanged(this, new lineRowChangeEvent(((lineRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.lineRowChanging != null)) {
                    this.lineRowChanging(this, new lineRowChangeEvent(((lineRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.lineRowDeleted != null)) {
                    this.lineRowDeleted(this, new lineRowChangeEvent(((lineRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.lineRowDeleting != null)) {
                    this.lineRowDeleting(this, new lineRowChangeEvent(((lineRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovelineRow(lineRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class lineRow : DataRow {
            
            private lineDataTable tableline;
            
            internal lineRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableline = ((lineDataTable)(this.Table));
            }
            
            public int lineid {
                get {
                    return ((int)(this[this.tableline.lineidColumn]));
                }
                set {
                    this[this.tableline.lineidColumn] = value;
                }
            }
            
            public string linename {
                get {
                    try {
                        return ((string)(this[this.tableline.linenameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableline.linenameColumn] = value;
                }
            }
            
            public int lineprice {
                get {
                    try {
                        return ((int)(this[this.tableline.linepriceColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableline.linepriceColumn] = value;
                }
            }
            
            public string datatime {
                get {
                    try {
                        return ((string)(this[this.tableline.datatimeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableline.datatimeColumn] = value;
                }
            }
            
            public string journey {
                get {
                    try {
                        return ((string)(this[this.tableline.journeyColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableline.journeyColumn] = value;
                }
            }
            
            public string picture {
                get {
                    try {
                        return ((string)(this[this.tableline.pictureColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableline.pictureColumn] = value;
                }
            }
            
            public bool IslinenameNull() {
                return this.IsNull(this.tableline.linenameColumn);
            }
            
            public void SetlinenameNull() {
                this[this.tableline.linenameColumn] = System.Convert.DBNull;
            }
            
            public bool IslinepriceNull() {
                return this.IsNull(this.tableline.linepriceColumn);
            }
            
            public void SetlinepriceNull() {
                this[this.tableline.linepriceColumn] = System.Convert.DBNull;
            }
            
            public bool IsdatatimeNull() {
                return this.IsNull(this.tableline.datatimeColumn);
            }
            
            public void SetdatatimeNull() {
                this[this.tableline.datatimeColumn] = System.Convert.DBNull;
            }
            
            public bool IsjourneyNull() {
                return this.IsNull(this.tableline.journeyColumn);
            }
            
            public void SetjourneyNull() {
                this[this.tableline.journeyColumn] = System.Convert.DBNull;
            }
            
            public bool IspictureNull() {
                return this.IsNull(this.tableline.pictureColumn);
            }
            
            public void SetpictureNull() {
                this[this.tableline.pictureColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class lineRowChangeEvent : EventArgs {
            
            private lineRow eventRow;
            
            private DataRowAction eventAction;
            
            public lineRowChangeEvent(lineRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public lineRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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