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

📄 shortpraghdataset.cs

📁 第三方物流信息管理平台 1、数据库配置: 需要打开MS SQL SERVER 2000企业管理器
💻 CS
📖 第 1 页 / 共 2 页
字号:
            public event short_praghRowChangeEventHandler short_praghRowChanging;
            
            public event short_praghRowChangeEventHandler short_praghRowDeleted;
            
            public event short_praghRowChangeEventHandler short_praghRowDeleting;
            
            public void Addshort_praghRow(short_praghRow row) {
                this.Rows.Add(row);
            }
            
            public short_praghRow Addshort_praghRow(int 订单编号, string 最短路径) {
                short_praghRow rowshort_praghRow = ((short_praghRow)(this.NewRow()));
                rowshort_praghRow.ItemArray = new object[] {
                        null,
                        订单编号,
                        最短路径};
                this.Rows.Add(rowshort_praghRow);
                return rowshort_praghRow;
            }
            
            public short_praghRow FindBy内码(int 内码) {
                return ((short_praghRow)(this.Rows.Find(new object[] {
                            内码})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                short_praghDataTable cln = ((short_praghDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new short_praghDataTable();
            }
            
            internal void InitVars() {
                this.column内码 = this.Columns["内码"];
                this.column订单编号 = this.Columns["订单编号"];
                this.column最短路径 = this.Columns["最短路径"];
            }
            
            private void InitClass() {
                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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.column内码}, true));
                this.column内码.AutoIncrement = true;
                this.column内码.AllowDBNull = false;
                this.column内码.ReadOnly = true;
                this.column内码.Unique = true;
            }
            
            public short_praghRow Newshort_praghRow() {
                return ((short_praghRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new short_praghRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(short_praghRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.short_praghRowChanged != null)) {
                    this.short_praghRowChanged(this, new short_praghRowChangeEvent(((short_praghRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.short_praghRowChanging != null)) {
                    this.short_praghRowChanging(this, new short_praghRowChangeEvent(((short_praghRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.short_praghRowDeleted != null)) {
                    this.short_praghRowDeleted(this, new short_praghRowChangeEvent(((short_praghRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.short_praghRowDeleting != null)) {
                    this.short_praghRowDeleting(this, new short_praghRowChangeEvent(((short_praghRow)(e.Row)), e.Action));
                }
            }
            
            public void Removeshort_praghRow(short_praghRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class short_praghRow : DataRow {
            
            private short_praghDataTable tableshort_pragh;
            
            internal short_praghRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableshort_pragh = ((short_praghDataTable)(this.Table));
            }
            
            public int 内码 {
                get {
                    return ((int)(this[this.tableshort_pragh.内码Column]));
                }
                set {
                    this[this.tableshort_pragh.内码Column] = value;
                }
            }
            
            public int 订单编号 {
                get {
                    try {
                        return ((int)(this[this.tableshort_pragh.订单编号Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableshort_pragh.订单编号Column] = value;
                }
            }
            
            public string 最短路径 {
                get {
                    try {
                        return ((string)(this[this.tableshort_pragh.最短路径Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableshort_pragh.最短路径Column] = value;
                }
            }
            
            public bool Is订单编号Null() {
                return this.IsNull(this.tableshort_pragh.订单编号Column);
            }
            
            public void Set订单编号Null() {
                this[this.tableshort_pragh.订单编号Column] = System.Convert.DBNull;
            }
            
            public bool Is最短路径Null() {
                return this.IsNull(this.tableshort_pragh.最短路径Column);
            }
            
            public void Set最短路径Null() {
                this[this.tableshort_pragh.最短路径Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class short_praghRowChangeEvent : EventArgs {
            
            private short_praghRow eventRow;
            
            private DataRowAction eventAction;
            
            public short_praghRowChangeEvent(short_praghRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public short_praghRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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