DataSet1.Designer.cs
上传用户:miknos
上传日期:2022-04-30
资源大小:802k
文件大小:32k
源码类别:

百货/超市行业

开发平台:

Visual C++

  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. //     此代码由工具生成。
  4. //     运行时版本:2.0.50727.3603
  5. //
  6. //     对此文件的更改可能会导致不正确的行为,并且如果
  7. //     重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace supershop {
  12.     
  13.     
  14.     /// <summary>
  15.     ///Represents a strongly typed in-memory cache of data.
  16.     ///</summary>
  17.     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  18.     [global::System.Serializable()]
  19.     [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  20.     [global::System.ComponentModel.ToolboxItem(true)]
  21.     [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  22.     [global::System.Xml.Serialization.XmlRootAttribute("DataSet1")]
  23.     [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  24.     public partial class DataSet1 : global::System.Data.DataSet {
  25.         
  26.         private productionDataTable tableproduction;
  27.         
  28.         private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  29.         
  30.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  31.         public DataSet1() {
  32.             this.BeginInit();
  33.             this.InitClass();
  34.             global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  35.             base.Tables.CollectionChanged += schemaChangedHandler;
  36.             base.Relations.CollectionChanged += schemaChangedHandler;
  37.             this.EndInit();
  38.         }
  39.         
  40.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  41.         protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
  42.                 base(info, context, false) {
  43.             if ((this.IsBinarySerialized(info, context) == true)) {
  44.                 this.InitVars(false);
  45.                 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46.                 this.Tables.CollectionChanged += schemaChangedHandler1;
  47.                 this.Relations.CollectionChanged += schemaChangedHandler1;
  48.                 return;
  49.             }
  50.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  51.             if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  52.                 global::System.Data.DataSet ds = new global::System.Data.DataSet();
  53.                 ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  54.                 if ((ds.Tables["production"] != null)) {
  55.                     base.Tables.Add(new productionDataTable(ds.Tables["production"]));
  56.                 }
  57.                 this.DataSetName = ds.DataSetName;
  58.                 this.Prefix = ds.Prefix;
  59.                 this.Namespace = ds.Namespace;
  60.                 this.Locale = ds.Locale;
  61.                 this.CaseSensitive = ds.CaseSensitive;
  62.                 this.EnforceConstraints = ds.EnforceConstraints;
  63.                 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  64.                 this.InitVars();
  65.             }
  66.             else {
  67.                 this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  68.             }
  69.             this.GetSerializationData(info, context);
  70.             global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  71.             base.Tables.CollectionChanged += schemaChangedHandler;
  72.             this.Relations.CollectionChanged += schemaChangedHandler;
  73.         }
  74.         
  75.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  76.         [global::System.ComponentModel.Browsable(false)]
  77.         [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  78.         public productionDataTable production {
  79.             get {
  80.                 return this.tableproduction;
  81.             }
  82.         }
  83.         
  84.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  85.         [global::System.ComponentModel.BrowsableAttribute(true)]
  86.         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  87.         public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  88.             get {
  89.                 return this._schemaSerializationMode;
  90.             }
  91.             set {
  92.                 this._schemaSerializationMode = value;
  93.             }
  94.         }
  95.         
  96.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  97.         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  98.         public new global::System.Data.DataTableCollection Tables {
  99.             get {
  100.                 return base.Tables;
  101.             }
  102.         }
  103.         
  104.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105.         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  106.         public new global::System.Data.DataRelationCollection Relations {
  107.             get {
  108.                 return base.Relations;
  109.             }
  110.         }
  111.         
  112.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  113.         protected override void InitializeDerivedDataSet() {
  114.             this.BeginInit();
  115.             this.InitClass();
  116.             this.EndInit();
  117.         }
  118.         
  119.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120.         public override global::System.Data.DataSet Clone() {
  121.             DataSet1 cln = ((DataSet1)(base.Clone()));
  122.             cln.InitVars();
  123.             cln.SchemaSerializationMode = this.SchemaSerializationMode;
  124.             return cln;
  125.         }
  126.         
  127.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128.         protected override bool ShouldSerializeTables() {
  129.             return false;
  130.         }
  131.         
  132.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133.         protected override bool ShouldSerializeRelations() {
  134.             return false;
  135.         }
  136.         
  137.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138.         protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  139.             if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  140.                 this.Reset();
  141.                 global::System.Data.DataSet ds = new global::System.Data.DataSet();
  142.                 ds.ReadXml(reader);
  143.                 if ((ds.Tables["production"] != null)) {
  144.                     base.Tables.Add(new productionDataTable(ds.Tables["production"]));
  145.                 }
  146.                 this.DataSetName = ds.DataSetName;
  147.                 this.Prefix = ds.Prefix;
  148.                 this.Namespace = ds.Namespace;
  149.                 this.Locale = ds.Locale;
  150.                 this.CaseSensitive = ds.CaseSensitive;
  151.                 this.EnforceConstraints = ds.EnforceConstraints;
  152.                 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  153.                 this.InitVars();
  154.             }
  155.             else {
  156.                 this.ReadXml(reader);
  157.                 this.InitVars();
  158.             }
  159.         }
  160.         
  161.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162.         protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  163.             global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  164.             this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  165.             stream.Position = 0;
  166.             return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  167.         }
  168.         
  169.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170.         internal void InitVars() {
  171.             this.InitVars(true);
  172.         }
  173.         
  174.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175.         internal void InitVars(bool initTable) {
  176.             this.tableproduction = ((productionDataTable)(base.Tables["production"]));
  177.             if ((initTable == true)) {
  178.                 if ((this.tableproduction != null)) {
  179.                     this.tableproduction.InitVars();
  180.                 }
  181.             }
  182.         }
  183.         
  184.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185.         private void InitClass() {
  186.             this.DataSetName = "DataSet1";
  187.             this.Prefix = "";
  188.             this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
  189.             this.Locale = new global::System.Globalization.CultureInfo("zh-CN");
  190.             this.EnforceConstraints = true;
  191.             this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  192.             this.tableproduction = new productionDataTable();
  193.             base.Tables.Add(this.tableproduction);
  194.         }
  195.         
  196.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197.         private bool ShouldSerializeproduction() {
  198.             return false;
  199.         }
  200.         
  201.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202.         private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  203.             if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  204.                 this.InitVars();
  205.             }
  206.         }
  207.         
  208.         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  209.         public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  210.             DataSet1 ds = new DataSet1();
  211.             global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  212.             global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  213.             global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  214.             any.Namespace = ds.Namespace;
  215.             sequence.Items.Add(any);
  216.             type.Particle = sequence;
  217.             global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  218.             if (xs.Contains(dsSchema.TargetNamespace)) {
  219.                 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  220.                 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  221.                 try {
  222.                     global::System.Xml.Schema.XmlSchema schema = null;
  223.                     dsSchema.Write(s1);
  224.                     for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  225.                         schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  226.                         s2.SetLength(0);
  227.                         schema.Write(s2);
  228.                         if ((s1.Length == s2.Length)) {
  229.                             s1.Position = 0;
  230.                             s2.Position = 0;
  231.                             for (; ((s1.Position != s1.Length) 
  232.                                         && (s1.ReadByte() == s2.ReadByte())); ) {
  233.                                 ;
  234.                             }
  235.                             if ((s1.Position == s1.Length)) {
  236.                                 return type;
  237.                             }
  238.                         }
  239.                     }
  240.                 }
  241.                 finally {
  242.                     if ((s1 != null)) {
  243.                         s1.Close();
  244.                     }
  245.                     if ((s2 != null)) {
  246.                         s2.Close();
  247.                     }
  248.                 }
  249.             }
  250.             xs.Add(dsSchema);
  251.             return type;
  252.         }
  253.         
  254.         public delegate void productionRowChangeEventHandler(object sender, productionRowChangeEvent e);
  255.         
  256.         /// <summary>
  257.         ///Represents the strongly named DataTable class.
  258.         ///</summary>
  259.         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  260.         [global::System.Serializable()]
  261.         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  262.         public partial class productionDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
  263.             
  264.             private global::System.Data.DataColumn columnpid;
  265.             
  266.             private global::System.Data.DataColumn columnpname;
  267.             
  268.             private global::System.Data.DataColumn columnprice;
  269.             
  270.             private global::System.Data.DataColumn columntotle;
  271.             
  272.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273.             public productionDataTable() {
  274.                 this.TableName = "production";
  275.                 this.BeginInit();
  276.                 this.InitClass();
  277.                 this.EndInit();
  278.             }
  279.             
  280.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  281.             internal productionDataTable(global::System.Data.DataTable table) {
  282.                 this.TableName = table.TableName;
  283.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  284.                     this.CaseSensitive = table.CaseSensitive;
  285.                 }
  286.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  287.                     this.Locale = table.Locale;
  288.                 }
  289.                 if ((table.Namespace != table.DataSet.Namespace)) {
  290.                     this.Namespace = table.Namespace;
  291.                 }
  292.                 this.Prefix = table.Prefix;
  293.                 this.MinimumCapacity = table.MinimumCapacity;
  294.             }
  295.             
  296.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  297.             protected productionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
  298.                     base(info, context) {
  299.                 this.InitVars();
  300.             }
  301.             
  302.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303.             public global::System.Data.DataColumn pidColumn {
  304.                 get {
  305.                     return this.columnpid;
  306.                 }
  307.             }
  308.             
  309.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310.             public global::System.Data.DataColumn pnameColumn {
  311.                 get {
  312.                     return this.columnpname;
  313.                 }
  314.             }
  315.             
  316.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  317.             public global::System.Data.DataColumn priceColumn {
  318.                 get {
  319.                     return this.columnprice;
  320.                 }
  321.             }
  322.             
  323.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  324.             public global::System.Data.DataColumn totleColumn {
  325.                 get {
  326.                     return this.columntotle;
  327.                 }
  328.             }
  329.             
  330.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  331.             [global::System.ComponentModel.Browsable(false)]
  332.             public int Count {
  333.                 get {
  334.                     return this.Rows.Count;
  335.                 }
  336.             }
  337.             
  338.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  339.             public productionRow this[int index] {
  340.                 get {
  341.                     return ((productionRow)(this.Rows[index]));
  342.                 }
  343.             }
  344.             
  345.             public event productionRowChangeEventHandler productionRowChanging;
  346.             
  347.             public event productionRowChangeEventHandler productionRowChanged;
  348.             
  349.             public event productionRowChangeEventHandler productionRowDeleting;
  350.             
  351.             public event productionRowChangeEventHandler productionRowDeleted;
  352.             
  353.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  354.             public void AddproductionRow(productionRow row) {
  355.                 this.Rows.Add(row);
  356.             }
  357.             
  358.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359.             public productionRow AddproductionRow(int pid, string pname, int price, int totle) {
  360.                 productionRow rowproductionRow = ((productionRow)(this.NewRow()));
  361.                 object[] columnValuesArray = new object[] {
  362.                         pid,
  363.                         pname,
  364.                         price,
  365.                         totle};
  366.                 rowproductionRow.ItemArray = columnValuesArray;
  367.                 this.Rows.Add(rowproductionRow);
  368.                 return rowproductionRow;
  369.             }
  370.             
  371.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  372.             public virtual global::System.Collections.IEnumerator GetEnumerator() {
  373.                 return this.Rows.GetEnumerator();
  374.             }
  375.             
  376.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377.             public override global::System.Data.DataTable Clone() {
  378.                 productionDataTable cln = ((productionDataTable)(base.Clone()));
  379.                 cln.InitVars();
  380.                 return cln;
  381.             }
  382.             
  383.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384.             protected override global::System.Data.DataTable CreateInstance() {
  385.                 return new productionDataTable();
  386.             }
  387.             
  388.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389.             internal void InitVars() {
  390.                 this.columnpid = base.Columns["pid"];
  391.                 this.columnpname = base.Columns["pname"];
  392.                 this.columnprice = base.Columns["price"];
  393.                 this.columntotle = base.Columns["totle"];
  394.             }
  395.             
  396.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  397.             private void InitClass() {
  398.                 this.columnpid = new global::System.Data.DataColumn("pid", typeof(int), null, global::System.Data.MappingType.Element);
  399.                 base.Columns.Add(this.columnpid);
  400.                 this.columnpname = new global::System.Data.DataColumn("pname", typeof(string), null, global::System.Data.MappingType.Element);
  401.                 base.Columns.Add(this.columnpname);
  402.                 this.columnprice = new global::System.Data.DataColumn("price", typeof(int), null, global::System.Data.MappingType.Element);
  403.                 base.Columns.Add(this.columnprice);
  404.                 this.columntotle = new global::System.Data.DataColumn("totle", typeof(int), null, global::System.Data.MappingType.Element);
  405.                 base.Columns.Add(this.columntotle);
  406.             }
  407.             
  408.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409.             public productionRow NewproductionRow() {
  410.                 return ((productionRow)(this.NewRow()));
  411.             }
  412.             
  413.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  414.             protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  415.                 return new productionRow(builder);
  416.             }
  417.             
  418.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  419.             protected override global::System.Type GetRowType() {
  420.                 return typeof(productionRow);
  421.             }
  422.             
  423.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  424.             protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  425.                 base.OnRowChanged(e);
  426.                 if ((this.productionRowChanged != null)) {
  427.                     this.productionRowChanged(this, new productionRowChangeEvent(((productionRow)(e.Row)), e.Action));
  428.                 }
  429.             }
  430.             
  431.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  432.             protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  433.                 base.OnRowChanging(e);
  434.                 if ((this.productionRowChanging != null)) {
  435.                     this.productionRowChanging(this, new productionRowChangeEvent(((productionRow)(e.Row)), e.Action));
  436.                 }
  437.             }
  438.             
  439.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440.             protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  441.                 base.OnRowDeleted(e);
  442.                 if ((this.productionRowDeleted != null)) {
  443.                     this.productionRowDeleted(this, new productionRowChangeEvent(((productionRow)(e.Row)), e.Action));
  444.                 }
  445.             }
  446.             
  447.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  448.             protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  449.                 base.OnRowDeleting(e);
  450.                 if ((this.productionRowDeleting != null)) {
  451.                     this.productionRowDeleting(this, new productionRowChangeEvent(((productionRow)(e.Row)), e.Action));
  452.                 }
  453.             }
  454.             
  455.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  456.             public void RemoveproductionRow(productionRow row) {
  457.                 this.Rows.Remove(row);
  458.             }
  459.             
  460.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461.             public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  462.                 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  463.                 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  464.                 DataSet1 ds = new DataSet1();
  465.                 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  466.                 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  467.                 any1.MinOccurs = new decimal(0);
  468.                 any1.MaxOccurs = decimal.MaxValue;
  469.                 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  470.                 sequence.Items.Add(any1);
  471.                 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  472.                 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  473.                 any2.MinOccurs = new decimal(1);
  474.                 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  475.                 sequence.Items.Add(any2);
  476.                 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  477.                 attribute1.Name = "namespace";
  478.                 attribute1.FixedValue = ds.Namespace;
  479.                 type.Attributes.Add(attribute1);
  480.                 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  481.                 attribute2.Name = "tableTypeName";
  482.                 attribute2.FixedValue = "productionDataTable";
  483.                 type.Attributes.Add(attribute2);
  484.                 type.Particle = sequence;
  485.                 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  486.                 if (xs.Contains(dsSchema.TargetNamespace)) {
  487.                     global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  488.                     global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  489.                     try {
  490.                         global::System.Xml.Schema.XmlSchema schema = null;
  491.                         dsSchema.Write(s1);
  492.                         for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  493.                             schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  494.                             s2.SetLength(0);
  495.                             schema.Write(s2);
  496.                             if ((s1.Length == s2.Length)) {
  497.                                 s1.Position = 0;
  498.                                 s2.Position = 0;
  499.                                 for (; ((s1.Position != s1.Length) 
  500.                                             && (s1.ReadByte() == s2.ReadByte())); ) {
  501.                                     ;
  502.                                 }
  503.                                 if ((s1.Position == s1.Length)) {
  504.                                     return type;
  505.                                 }
  506.                             }
  507.                         }
  508.                     }
  509.                     finally {
  510.                         if ((s1 != null)) {
  511.                             s1.Close();
  512.                         }
  513.                         if ((s2 != null)) {
  514.                             s2.Close();
  515.                         }
  516.                     }
  517.                 }
  518.                 xs.Add(dsSchema);
  519.                 return type;
  520.             }
  521.         }
  522.         
  523.         /// <summary>
  524.         ///Represents strongly named DataRow class.
  525.         ///</summary>
  526.         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  527.         public partial class productionRow : global::System.Data.DataRow {
  528.             
  529.             private productionDataTable tableproduction;
  530.             
  531.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532.             internal productionRow(global::System.Data.DataRowBuilder rb) : 
  533.                     base(rb) {
  534.                 this.tableproduction = ((productionDataTable)(this.Table));
  535.             }
  536.             
  537.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538.             public int pid {
  539.                 get {
  540.                     try {
  541.                         return ((int)(this[this.tableproduction.pidColumn]));
  542.                     }
  543.                     catch (global::System.InvalidCastException e) {
  544.                         throw new global::System.Data.StrongTypingException("表“production”中列“pid”的值为 DBNull。", e);
  545.                     }
  546.                 }
  547.                 set {
  548.                     this[this.tableproduction.pidColumn] = value;
  549.                 }
  550.             }
  551.             
  552.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  553.             public string pname {
  554.                 get {
  555.                     try {
  556.                         return ((string)(this[this.tableproduction.pnameColumn]));
  557.                     }
  558.                     catch (global::System.InvalidCastException e) {
  559.                         throw new global::System.Data.StrongTypingException("表“production”中列“pname”的值为 DBNull。", e);
  560.                     }
  561.                 }
  562.                 set {
  563.                     this[this.tableproduction.pnameColumn] = value;
  564.                 }
  565.             }
  566.             
  567.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  568.             public int price {
  569.                 get {
  570.                     try {
  571.                         return ((int)(this[this.tableproduction.priceColumn]));
  572.                     }
  573.                     catch (global::System.InvalidCastException e) {
  574.                         throw new global::System.Data.StrongTypingException("表“production”中列“price”的值为 DBNull。", e);
  575.                     }
  576.                 }
  577.                 set {
  578.                     this[this.tableproduction.priceColumn] = value;
  579.                 }
  580.             }
  581.             
  582.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583.             public int totle {
  584.                 get {
  585.                     try {
  586.                         return ((int)(this[this.tableproduction.totleColumn]));
  587.                     }
  588.                     catch (global::System.InvalidCastException e) {
  589.                         throw new global::System.Data.StrongTypingException("表“production”中列“totle”的值为 DBNull。", e);
  590.                     }
  591.                 }
  592.                 set {
  593.                     this[this.tableproduction.totleColumn] = value;
  594.                 }
  595.             }
  596.             
  597.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598.             public bool IspidNull() {
  599.                 return this.IsNull(this.tableproduction.pidColumn);
  600.             }
  601.             
  602.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  603.             public void SetpidNull() {
  604.                 this[this.tableproduction.pidColumn] = global::System.Convert.DBNull;
  605.             }
  606.             
  607.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608.             public bool IspnameNull() {
  609.                 return this.IsNull(this.tableproduction.pnameColumn);
  610.             }
  611.             
  612.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613.             public void SetpnameNull() {
  614.                 this[this.tableproduction.pnameColumn] = global::System.Convert.DBNull;
  615.             }
  616.             
  617.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618.             public bool IspriceNull() {
  619.                 return this.IsNull(this.tableproduction.priceColumn);
  620.             }
  621.             
  622.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  623.             public void SetpriceNull() {
  624.                 this[this.tableproduction.priceColumn] = global::System.Convert.DBNull;
  625.             }
  626.             
  627.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628.             public bool IstotleNull() {
  629.                 return this.IsNull(this.tableproduction.totleColumn);
  630.             }
  631.             
  632.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633.             public void SettotleNull() {
  634.                 this[this.tableproduction.totleColumn] = global::System.Convert.DBNull;
  635.             }
  636.         }
  637.         
  638.         /// <summary>
  639.         ///Row event argument class
  640.         ///</summary>
  641.         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  642.         public class productionRowChangeEvent : global::System.EventArgs {
  643.             
  644.             private productionRow eventRow;
  645.             
  646.             private global::System.Data.DataRowAction eventAction;
  647.             
  648.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  649.             public productionRowChangeEvent(productionRow row, global::System.Data.DataRowAction action) {
  650.                 this.eventRow = row;
  651.                 this.eventAction = action;
  652.             }
  653.             
  654.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655.             public productionRow Row {
  656.                 get {
  657.                     return this.eventRow;
  658.                 }
  659.             }
  660.             
  661.             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  662.             public global::System.Data.DataRowAction Action {
  663.                 get {
  664.                     return this.eventAction;
  665.                 }
  666.             }
  667.         }
  668.     }
  669. }
  670. #pragma warning restore 1591