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

📄 joinquerydataset.designer.cs

📁 Microsoft Mobile Development Handbook的代码,有C#,VB,C++的
💻 CS
📖 第 1 页 / 共 3 页
字号:
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ProductsCategoryRow this[int index] {
                get {
                    return ((ProductsCategoryRow)(this.Rows[index]));
                }
            }
            
            public event ProductsCategoryRowChangeEventHandler ProductsCategoryRowChanging;
            
            public event ProductsCategoryRowChangeEventHandler ProductsCategoryRowChanged;
            
            public event ProductsCategoryRowChangeEventHandler ProductsCategoryRowDeleting;
            
            public event ProductsCategoryRowChangeEventHandler ProductsCategoryRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddProductsCategoryRow(ProductsCategoryRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ProductsCategoryRow AddProductsCategoryRow(int ProductID, string Name, string Color, decimal ListPrice, string Size, string CategoryName) {
                ProductsCategoryRow rowProductsCategoryRow = ((ProductsCategoryRow)(this.NewRow()));
                rowProductsCategoryRow.ItemArray = new object[] {
                        ProductID,
                        Name,
                        Color,
                        ListPrice,
                        Size,
                        CategoryName};
                this.Rows.Add(rowProductsCategoryRow);
                return rowProductsCategoryRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                ProductsCategoryDataTable cln = ((ProductsCategoryDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new ProductsCategoryDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnProductID = base.Columns["ProductID"];
                this.columnName = base.Columns["Name"];
                this.columnColor = base.Columns["Color"];
                this.columnListPrice = base.Columns["ListPrice"];
                this.columnSize = base.Columns["Size"];
                this.columnCategoryName = base.Columns["CategoryName"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnProductID = new System.Data.DataColumn("ProductID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnProductID);
                this.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnName);
                this.columnColor = new System.Data.DataColumn("Color", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnColor);
                this.columnListPrice = new System.Data.DataColumn("ListPrice", typeof(decimal), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnListPrice);
                this.columnSize = new System.Data.DataColumn("Size", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnSize);
                this.columnCategoryName = new System.Data.DataColumn("CategoryName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnCategoryName);
                this.columnProductID.ReadOnly = true;
                this.columnName.ReadOnly = true;
                this.columnName.MaxLength = 50;
                this.columnColor.ReadOnly = true;
                this.columnColor.MaxLength = 15;
                this.columnListPrice.ReadOnly = true;
                this.columnSize.ReadOnly = true;
                this.columnSize.MaxLength = 5;
                this.columnCategoryName.ReadOnly = true;
                this.columnCategoryName.MaxLength = 50;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ProductsCategoryRow NewProductsCategoryRow() {
                return ((ProductsCategoryRow)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new ProductsCategoryRow(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(ProductsCategoryRow);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.ProductsCategoryRowChanged != null)) {
                    this.ProductsCategoryRowChanged(this, new ProductsCategoryRowChangeEvent(((ProductsCategoryRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.ProductsCategoryRowChanging != null)) {
                    this.ProductsCategoryRowChanging(this, new ProductsCategoryRowChangeEvent(((ProductsCategoryRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.ProductsCategoryRowDeleted != null)) {
                    this.ProductsCategoryRowDeleted(this, new ProductsCategoryRowChangeEvent(((ProductsCategoryRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.ProductsCategoryRowDeleting != null)) {
                    this.ProductsCategoryRowDeleting(this, new ProductsCategoryRowChangeEvent(((ProductsCategoryRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveProductsCategoryRow(ProductsCategoryRow row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                JOINQueryDataSet ds = new JOINQueryDataSet();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "ProductsCategoryDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        public partial class ProductsCategoryRow : System.Data.DataRow {
            
            private ProductsCategoryDataTable tableProductsCategory;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal ProductsCategoryRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableProductsCategory = ((ProductsCategoryDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ProductID {
                get {
                    try {
                        return ((int)(this[this.tableProductsCategory.ProductIDColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ProductID\' in table \'ProductsCategory\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableProductsCategory.ProductIDColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Name {
                get {
                    try {
                        return ((string)(this[this.tableProductsCategory.NameColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Name\' in table \'ProductsCategory\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableProductsCategory.NameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Color {
                get {
                    try {
                        return ((string)(this[this.tableProductsCategory.ColorColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Color\' in table \'ProductsCategory\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableProductsCategory.ColorColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal ListPrice {
                get {
                    try {
                        return ((decimal)(this[this.tableProductsCategory.ListPriceColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ListPrice\' in table \'ProductsCategory\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableProductsCategory.ListPriceColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Size {
                get {
                    try {
                        return ((string)(this[this.tableProductsCategory.SizeColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Size\' in table \'ProductsCategory\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableProductsCategory.SizeColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string CategoryName {
                get {
                    try {
                        return ((string)(this[this.tableProductsCategory.CategoryNameColumn]));
                    }

⌨️ 快捷键说明

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