[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / System.Data / Test / System.Data / DataSet1.Designer.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 //     This code was generated by a tool.
4 //     Runtime Version:2.0.50727.1318
5 //
6 //     Changes to this file may cause incorrect behavior and will be lost if
7 //     the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 #pragma warning disable 1591
12
13 namespace MonoTests.System.Data {
14     
15     
16     /// <summary>
17     ///Represents a strongly typed in-memory cache of data.
18     ///</summary>
19     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
20     [global::System.Serializable()]
21     [global::System.ComponentModel.DesignerCategoryAttribute("code")]
22     [global::System.ComponentModel.ToolboxItem(true)]
23     [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
24     [global::System.Xml.Serialization.XmlRootAttribute("DataSet1")]
25 //    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
26     public partial class DataSet1 : global::System.Data.DataSet {
27         
28         private DataTable1DataTable tableDataTable1;
29         
30         private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
31         
32         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
33         public DataSet1() {
34             this.BeginInit();
35             this.InitClass();
36             global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
37             base.Tables.CollectionChanged += schemaChangedHandler;
38             base.Relations.CollectionChanged += schemaChangedHandler;
39             this.EndInit();
40         }
41         
42         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
43         protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
44                 base(info, context, false) {
45             if ((this.IsBinarySerialized(info, context) == true)) {
46                 this.InitVars(false);
47                 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
48                 this.Tables.CollectionChanged += schemaChangedHandler1;
49                 this.Relations.CollectionChanged += schemaChangedHandler1;
50                 return;
51             }
52             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
53             if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
54                 global::System.Data.DataSet ds = new global::System.Data.DataSet();
55                 ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
56                 if ((ds.Tables["DataTable1"] != null)) {
57                     base.Tables.Add(new DataTable1DataTable(ds.Tables["DataTable1"]));
58                 }
59                 this.DataSetName = ds.DataSetName;
60                 this.Prefix = ds.Prefix;
61                 this.Namespace = ds.Namespace;
62                 this.Locale = ds.Locale;
63                 this.CaseSensitive = ds.CaseSensitive;
64                 this.EnforceConstraints = ds.EnforceConstraints;
65                 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
66                 this.InitVars();
67             }
68             else {
69                 this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
70             }
71             this.GetSerializationData(info, context);
72             global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
73             base.Tables.CollectionChanged += schemaChangedHandler;
74             this.Relations.CollectionChanged += schemaChangedHandler;
75         }
76         
77         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
78         [global::System.ComponentModel.Browsable(false)]
79         [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
80         public DataTable1DataTable DataTable1 {
81             get {
82                 return this.tableDataTable1;
83             }
84         }
85         
86         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
87         [global::System.ComponentModel.BrowsableAttribute(true)]
88         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
89         public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
90             get {
91                 return this._schemaSerializationMode;
92             }
93             set {
94                 this._schemaSerializationMode = value;
95             }
96         }
97         
98         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
99         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
100         public new global::System.Data.DataTableCollection Tables {
101             get {
102                 return base.Tables;
103             }
104         }
105         
106         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
107         [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
108         public new global::System.Data.DataRelationCollection Relations {
109             get {
110                 return base.Relations;
111             }
112         }
113         
114         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
115         protected override void InitializeDerivedDataSet() {
116             this.BeginInit();
117             this.InitClass();
118             this.EndInit();
119         }
120         
121         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
122         public override global::System.Data.DataSet Clone() {
123             DataSet1 cln = ((DataSet1)(base.Clone()));
124             cln.InitVars();
125             cln.SchemaSerializationMode = this.SchemaSerializationMode;
126             return cln;
127         }
128         
129         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
130         protected override bool ShouldSerializeTables() {
131             return false;
132         }
133         
134         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
135         protected override bool ShouldSerializeRelations() {
136             return false;
137         }
138         
139         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
140         protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
141             if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
142                 this.Reset();
143                 global::System.Data.DataSet ds = new global::System.Data.DataSet();
144                 ds.ReadXml(reader);
145                 if ((ds.Tables["DataTable1"] != null)) {
146                     base.Tables.Add(new DataTable1DataTable(ds.Tables["DataTable1"]));
147                 }
148                 this.DataSetName = ds.DataSetName;
149                 this.Prefix = ds.Prefix;
150                 this.Namespace = ds.Namespace;
151                 this.Locale = ds.Locale;
152                 this.CaseSensitive = ds.CaseSensitive;
153                 this.EnforceConstraints = ds.EnforceConstraints;
154                 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
155                 this.InitVars();
156             }
157             else {
158                 this.ReadXml(reader);
159                 this.InitVars();
160             }
161         }
162         
163         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
164         protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
165             global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
166             this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
167             stream.Position = 0;
168             return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
169         }
170         
171         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
172         internal void InitVars() {
173             this.InitVars(true);
174         }
175         
176         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
177         internal void InitVars(bool initTable) {
178             this.tableDataTable1 = ((DataTable1DataTable)(base.Tables["DataTable1"]));
179             if ((initTable == true)) {
180                 if ((this.tableDataTable1 != null)) {
181                     this.tableDataTable1.InitVars();
182                 }
183             }
184         }
185         
186         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
187         private void InitClass() {
188             this.DataSetName = "DataSet1";
189             this.Prefix = "";
190             this.Namespace = "http://tempuri.org/DataSet1.xsd";
191             this.EnforceConstraints = true;
192             this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
193             this.tableDataTable1 = new DataTable1DataTable();
194             base.Tables.Add(this.tableDataTable1);
195         }
196         
197         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
198         private bool ShouldSerializeDataTable1() {
199             return false;
200         }
201         
202         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
203         private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
204             if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
205                 this.InitVars();
206             }
207         }
208         
209         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
210         public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
211             DataSet1 ds = new DataSet1();
212             global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
213             global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
214             xs.Add(ds.GetSchemaSerializable());
215             global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
216             any.Namespace = ds.Namespace;
217             sequence.Items.Add(any);
218             type.Particle = sequence;
219             return type;
220         }
221         
222         public delegate void DataTable1RowChangeEventHandler(object sender, DataTable1RowChangeEvent e);
223         
224         /// <summary>
225         ///Represents the strongly named DataTable class.
226         ///</summary>
227         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
228         [global::System.Serializable()]
229         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
230         public partial class DataTable1DataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
231             
232             private global::System.Data.DataColumn columnColumn1;
233             
234             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
235             public DataTable1DataTable() {
236                 this.TableName = "DataTable1";
237                 this.BeginInit();
238                 this.InitClass();
239                 this.EndInit();
240             }
241             
242             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
243             internal DataTable1DataTable(global::System.Data.DataTable table) {
244                 this.TableName = table.TableName;
245                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
246                     this.CaseSensitive = table.CaseSensitive;
247                 }
248                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
249                     this.Locale = table.Locale;
250                 }
251                 if ((table.Namespace != table.DataSet.Namespace)) {
252                     this.Namespace = table.Namespace;
253                 }
254                 this.Prefix = table.Prefix;
255                 this.MinimumCapacity = table.MinimumCapacity;
256             }
257             
258             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
259             protected DataTable1DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
260                     base(info, context) {
261                 this.InitVars();
262             }
263             
264             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
265             public global::System.Data.DataColumn Column1Column {
266                 get {
267                     return this.columnColumn1;
268                 }
269             }
270             
271             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
272             [global::System.ComponentModel.Browsable(false)]
273             public int Count {
274                 get {
275                     return this.Rows.Count;
276                 }
277             }
278             
279             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
280             public DataTable1Row this[int index] {
281                 get {
282                     return ((DataTable1Row)(this.Rows[index]));
283                 }
284             }
285             
286             public event DataTable1RowChangeEventHandler DataTable1RowChanging;
287             
288             public event DataTable1RowChangeEventHandler DataTable1RowChanged;
289             
290             public event DataTable1RowChangeEventHandler DataTable1RowDeleting;
291             
292             public event DataTable1RowChangeEventHandler DataTable1RowDeleted;
293             
294             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
295             public void AddDataTable1Row(DataTable1Row row) {
296                 this.Rows.Add(row);
297             }
298             
299             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
300             public DataTable1Row AddDataTable1Row(string Column1) {
301                 DataTable1Row rowDataTable1Row = ((DataTable1Row)(this.NewRow()));
302                 object[] columnValuesArray = new object[] {
303                         Column1};
304                 rowDataTable1Row.ItemArray = columnValuesArray;
305                 this.Rows.Add(rowDataTable1Row);
306                 return rowDataTable1Row;
307             }
308             
309             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
310             public virtual global::System.Collections.IEnumerator GetEnumerator() {
311                 return this.Rows.GetEnumerator();
312             }
313             
314             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
315             public override global::System.Data.DataTable Clone() {
316                 DataTable1DataTable cln = ((DataTable1DataTable)(base.Clone()));
317                 cln.InitVars();
318                 return cln;
319             }
320             
321             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
322             protected override global::System.Data.DataTable CreateInstance() {
323                 return new DataTable1DataTable();
324             }
325             
326             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
327             internal void InitVars() {
328                 this.columnColumn1 = base.Columns["Column1"];
329             }
330             
331             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
332             private void InitClass() {
333                 this.columnColumn1 = new global::System.Data.DataColumn("Column1", typeof(string), null, global::System.Data.MappingType.Element);
334                 base.Columns.Add(this.columnColumn1);
335             }
336             
337             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
338             public DataTable1Row NewDataTable1Row() {
339                 return ((DataTable1Row)(this.NewRow()));
340             }
341             
342             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
343             protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
344                 return new DataTable1Row(builder);
345             }
346             
347             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
348             protected override global::System.Type GetRowType() {
349                 return typeof(DataTable1Row);
350             }
351             
352             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
353             protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
354                 base.OnRowChanged(e);
355                 if ((this.DataTable1RowChanged != null)) {
356                     this.DataTable1RowChanged(this, new DataTable1RowChangeEvent(((DataTable1Row)(e.Row)), e.Action));
357                 }
358             }
359             
360             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
361             protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
362                 base.OnRowChanging(e);
363                 if ((this.DataTable1RowChanging != null)) {
364                     this.DataTable1RowChanging(this, new DataTable1RowChangeEvent(((DataTable1Row)(e.Row)), e.Action));
365                 }
366             }
367             
368             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
369             protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
370                 base.OnRowDeleted(e);
371                 if ((this.DataTable1RowDeleted != null)) {
372                     this.DataTable1RowDeleted(this, new DataTable1RowChangeEvent(((DataTable1Row)(e.Row)), e.Action));
373                 }
374             }
375             
376             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
377             protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
378                 base.OnRowDeleting(e);
379                 if ((this.DataTable1RowDeleting != null)) {
380                     this.DataTable1RowDeleting(this, new DataTable1RowChangeEvent(((DataTable1Row)(e.Row)), e.Action));
381                 }
382             }
383             
384             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
385             public void RemoveDataTable1Row(DataTable1Row row) {
386                 this.Rows.Remove(row);
387             }
388             
389             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
390             public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
391                 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
392                 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
393                 DataSet1 ds = new DataSet1();
394                 xs.Add(ds.GetSchemaSerializable());
395                 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
396                 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
397                 any1.MinOccurs = new decimal(0);
398                 any1.MaxOccurs = decimal.MaxValue;
399                 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
400                 sequence.Items.Add(any1);
401                 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
402                 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
403                 any2.MinOccurs = new decimal(1);
404                 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
405                 sequence.Items.Add(any2);
406                 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
407                 attribute1.Name = "namespace";
408                 attribute1.FixedValue = ds.Namespace;
409                 type.Attributes.Add(attribute1);
410                 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
411                 attribute2.Name = "tableTypeName";
412                 attribute2.FixedValue = "DataTable1DataTable";
413                 type.Attributes.Add(attribute2);
414                 type.Particle = sequence;
415                 return type;
416             }
417         }
418         
419         /// <summary>
420         ///Represents strongly named DataRow class.
421         ///</summary>
422         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
423         public partial class DataTable1Row : global::System.Data.DataRow {
424             
425             private DataTable1DataTable tableDataTable1;
426             
427             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
428             internal DataTable1Row(global::System.Data.DataRowBuilder rb) : 
429                     base(rb) {
430                 this.tableDataTable1 = ((DataTable1DataTable)(this.Table));
431             }
432             
433             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
434             public string Column1 {
435                 get {
436                     try {
437                         return ((string)(this[this.tableDataTable1.Column1Column]));
438                     }
439                     catch (global::System.InvalidCastException e) {
440                         throw new global::System.Data.StrongTypingException("The value for column \'Column1\' in table \'DataTable1\' is DBNull.", e);
441                     }
442                 }
443                 set {
444                     this[this.tableDataTable1.Column1Column] = value;
445                 }
446             }
447             
448             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
449             public bool IsColumn1Null() {
450                 return this.IsNull(this.tableDataTable1.Column1Column);
451             }
452             
453             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
454             public void SetColumn1Null() {
455                 this[this.tableDataTable1.Column1Column] = global::System.Convert.DBNull;
456             }
457         }
458         
459         /// <summary>
460         ///Row event argument class
461         ///</summary>
462         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
463         public class DataTable1RowChangeEvent : global::System.EventArgs {
464             
465             private DataTable1Row eventRow;
466             
467             private global::System.Data.DataRowAction eventAction;
468             
469             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
470             public DataTable1RowChangeEvent(DataTable1Row row, global::System.Data.DataRowAction action) {
471                 this.eventRow = row;
472                 this.eventAction = action;
473             }
474             
475             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
476             public DataTable1Row Row {
477                 get {
478                     return this.eventRow;
479                 }
480             }
481             
482             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
483             public global::System.Data.DataRowAction Action {
484                 get {
485                     return this.eventAction;
486                 }
487             }
488         }
489     }
490 }
491
492 #pragma warning restore 1591
493