PageRenderTime 48ms CodeModel.GetById 17ms app.highlight 25ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSVstoGetWrapperObject/DemoData.Designer.cs

#
C# | 634 lines | 538 code | 75 blank | 21 comment | 60 complexity | 2c420779e06490a582b5cb1f99752a3d MD5 | raw file
  1//------------------------------------------------------------------------------
  2// <auto-generated>
  3//     This code was generated by a tool.
  4//     Runtime Version:2.0.50727.4918
  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
 13namespace CSVstoGetWrapperObject {
 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("DemoData")]
 25    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
 26    public partial class DemoData : global::System.Data.DataSet {
 27        
 28        private DemoTableDataTable tableDemoTable;
 29        
 30        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
 31        
 32        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
 33        public DemoData() {
 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 DemoData(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["DemoTable"] != null)) {
 57                    base.Tables.Add(new DemoTableDataTable(ds.Tables["DemoTable"]));
 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 DemoTableDataTable DemoTable {
 81            get {
 82                return this.tableDemoTable;
 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            DemoData cln = ((DemoData)(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["DemoTable"] != null)) {
146                    base.Tables.Add(new DemoTableDataTable(ds.Tables["DemoTable"]));
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.tableDemoTable = ((DemoTableDataTable)(base.Tables["DemoTable"]));
179            if ((initTable == true)) {
180                if ((this.tableDemoTable != null)) {
181                    this.tableDemoTable.InitVars();
182                }
183            }
184        }
185        
186        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
187        private void InitClass() {
188            this.DataSetName = "DemoData";
189            this.Prefix = "";
190            this.Namespace = "http://tempuri.org/DemoData.xsd";
191            this.EnforceConstraints = true;
192            this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
193            this.tableDemoTable = new DemoTableDataTable();
194            base.Tables.Add(this.tableDemoTable);
195        }
196        
197        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
198        private bool ShouldSerializeDemoTable() {
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            DemoData ds = new DemoData();
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            global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
215            any.Namespace = ds.Namespace;
216            sequence.Items.Add(any);
217            type.Particle = sequence;
218            global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
219            if (xs.Contains(dsSchema.TargetNamespace)) {
220                global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
221                global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
222                try {
223                    global::System.Xml.Schema.XmlSchema schema = null;
224                    dsSchema.Write(s1);
225                    for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
226                        schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
227                        s2.SetLength(0);
228                        schema.Write(s2);
229                        if ((s1.Length == s2.Length)) {
230                            s1.Position = 0;
231                            s2.Position = 0;
232                            for (; ((s1.Position != s1.Length) 
233                                        && (s1.ReadByte() == s2.ReadByte())); ) {
234                                ;
235                            }
236                            if ((s1.Position == s1.Length)) {
237                                return type;
238                            }
239                        }
240                    }
241                }
242                finally {
243                    if ((s1 != null)) {
244                        s1.Close();
245                    }
246                    if ((s2 != null)) {
247                        s2.Close();
248                    }
249                }
250            }
251            xs.Add(dsSchema);
252            return type;
253        }
254        
255        public delegate void DemoTableRowChangeEventHandler(object sender, DemoTableRowChangeEvent e);
256        
257        /// <summary>
258        ///Represents the strongly named DataTable class.
259        ///</summary>
260        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
261        [global::System.Serializable()]
262        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
263        public partial class DemoTableDataTable : global::System.Data.TypedTableBase<DemoTableRow> {
264            
265            private global::System.Data.DataColumn columnID;
266            
267            private global::System.Data.DataColumn columnName;
268            
269            private global::System.Data.DataColumn columnDOB;
270            
271            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
272            public DemoTableDataTable() {
273                this.TableName = "DemoTable";
274                this.BeginInit();
275                this.InitClass();
276                this.EndInit();
277            }
278            
279            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
280            internal DemoTableDataTable(global::System.Data.DataTable table) {
281                this.TableName = table.TableName;
282                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
283                    this.CaseSensitive = table.CaseSensitive;
284                }
285                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
286                    this.Locale = table.Locale;
287                }
288                if ((table.Namespace != table.DataSet.Namespace)) {
289                    this.Namespace = table.Namespace;
290                }
291                this.Prefix = table.Prefix;
292                this.MinimumCapacity = table.MinimumCapacity;
293            }
294            
295            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
296            protected DemoTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
297                    base(info, context) {
298                this.InitVars();
299            }
300            
301            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
302            public global::System.Data.DataColumn IDColumn {
303                get {
304                    return this.columnID;
305                }
306            }
307            
308            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
309            public global::System.Data.DataColumn NameColumn {
310                get {
311                    return this.columnName;
312                }
313            }
314            
315            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
316            public global::System.Data.DataColumn DOBColumn {
317                get {
318                    return this.columnDOB;
319                }
320            }
321            
322            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
323            [global::System.ComponentModel.Browsable(false)]
324            public int Count {
325                get {
326                    return this.Rows.Count;
327                }
328            }
329            
330            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
331            public DemoTableRow this[int index] {
332                get {
333                    return ((DemoTableRow)(this.Rows[index]));
334                }
335            }
336            
337            public event DemoTableRowChangeEventHandler DemoTableRowChanging;
338            
339            public event DemoTableRowChangeEventHandler DemoTableRowChanged;
340            
341            public event DemoTableRowChangeEventHandler DemoTableRowDeleting;
342            
343            public event DemoTableRowChangeEventHandler DemoTableRowDeleted;
344            
345            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
346            public void AddDemoTableRow(DemoTableRow row) {
347                this.Rows.Add(row);
348            }
349            
350            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
351            public DemoTableRow AddDemoTableRow(string Name, System.DateTime DOB) {
352                DemoTableRow rowDemoTableRow = ((DemoTableRow)(this.NewRow()));
353                object[] columnValuesArray = new object[] {
354                        null,
355                        Name,
356                        DOB};
357                rowDemoTableRow.ItemArray = columnValuesArray;
358                this.Rows.Add(rowDemoTableRow);
359                return rowDemoTableRow;
360            }
361            
362            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
363            public override global::System.Data.DataTable Clone() {
364                DemoTableDataTable cln = ((DemoTableDataTable)(base.Clone()));
365                cln.InitVars();
366                return cln;
367            }
368            
369            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
370            protected override global::System.Data.DataTable CreateInstance() {
371                return new DemoTableDataTable();
372            }
373            
374            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
375            internal void InitVars() {
376                this.columnID = base.Columns["ID"];
377                this.columnName = base.Columns["Name"];
378                this.columnDOB = base.Columns["DOB"];
379            }
380            
381            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
382            private void InitClass() {
383                this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
384                base.Columns.Add(this.columnID);
385                this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
386                base.Columns.Add(this.columnName);
387                this.columnDOB = new global::System.Data.DataColumn("DOB", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
388                base.Columns.Add(this.columnDOB);
389                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
390                                this.columnID}, false));
391                this.columnID.AutoIncrement = true;
392                this.columnID.AutoIncrementSeed = 1;
393                this.columnID.Unique = true;
394            }
395            
396            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
397            public DemoTableRow NewDemoTableRow() {
398                return ((DemoTableRow)(this.NewRow()));
399            }
400            
401            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
402            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
403                return new DemoTableRow(builder);
404            }
405            
406            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
407            protected override global::System.Type GetRowType() {
408                return typeof(DemoTableRow);
409            }
410            
411            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
412            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
413                base.OnRowChanged(e);
414                if ((this.DemoTableRowChanged != null)) {
415                    this.DemoTableRowChanged(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
416                }
417            }
418            
419            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
420            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
421                base.OnRowChanging(e);
422                if ((this.DemoTableRowChanging != null)) {
423                    this.DemoTableRowChanging(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
424                }
425            }
426            
427            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
428            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
429                base.OnRowDeleted(e);
430                if ((this.DemoTableRowDeleted != null)) {
431                    this.DemoTableRowDeleted(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
432                }
433            }
434            
435            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
436            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
437                base.OnRowDeleting(e);
438                if ((this.DemoTableRowDeleting != null)) {
439                    this.DemoTableRowDeleting(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
440                }
441            }
442            
443            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
444            public void RemoveDemoTableRow(DemoTableRow row) {
445                this.Rows.Remove(row);
446            }
447            
448            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
449            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
450                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
451                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
452                DemoData ds = new DemoData();
453                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
454                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
455                any1.MinOccurs = new decimal(0);
456                any1.MaxOccurs = decimal.MaxValue;
457                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
458                sequence.Items.Add(any1);
459                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
460                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
461                any2.MinOccurs = new decimal(1);
462                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
463                sequence.Items.Add(any2);
464                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
465                attribute1.Name = "namespace";
466                attribute1.FixedValue = ds.Namespace;
467                type.Attributes.Add(attribute1);
468                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
469                attribute2.Name = "tableTypeName";
470                attribute2.FixedValue = "DemoTableDataTable";
471                type.Attributes.Add(attribute2);
472                type.Particle = sequence;
473                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
474                if (xs.Contains(dsSchema.TargetNamespace)) {
475                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
476                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
477                    try {
478                        global::System.Xml.Schema.XmlSchema schema = null;
479                        dsSchema.Write(s1);
480                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
481                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
482                            s2.SetLength(0);
483                            schema.Write(s2);
484                            if ((s1.Length == s2.Length)) {
485                                s1.Position = 0;
486                                s2.Position = 0;
487                                for (; ((s1.Position != s1.Length) 
488                                            && (s1.ReadByte() == s2.ReadByte())); ) {
489                                    ;
490                                }
491                                if ((s1.Position == s1.Length)) {
492                                    return type;
493                                }
494                            }
495                        }
496                    }
497                    finally {
498                        if ((s1 != null)) {
499                            s1.Close();
500                        }
501                        if ((s2 != null)) {
502                            s2.Close();
503                        }
504                    }
505                }
506                xs.Add(dsSchema);
507                return type;
508            }
509        }
510        
511        /// <summary>
512        ///Represents strongly named DataRow class.
513        ///</summary>
514        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
515        public partial class DemoTableRow : global::System.Data.DataRow {
516            
517            private DemoTableDataTable tableDemoTable;
518            
519            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
520            internal DemoTableRow(global::System.Data.DataRowBuilder rb) : 
521                    base(rb) {
522                this.tableDemoTable = ((DemoTableDataTable)(this.Table));
523            }
524            
525            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
526            public int ID {
527                get {
528                    try {
529                        return ((int)(this[this.tableDemoTable.IDColumn]));
530                    }
531                    catch (global::System.InvalidCastException e) {
532                        throw new global::System.Data.StrongTypingException("The value for column \'ID\' in table \'DemoTable\' is DBNull.", e);
533                    }
534                }
535                set {
536                    this[this.tableDemoTable.IDColumn] = value;
537                }
538            }
539            
540            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
541            public string Name {
542                get {
543                    try {
544                        return ((string)(this[this.tableDemoTable.NameColumn]));
545                    }
546                    catch (global::System.InvalidCastException e) {
547                        throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'DemoTable\' is DBNull.", e);
548                    }
549                }
550                set {
551                    this[this.tableDemoTable.NameColumn] = value;
552                }
553            }
554            
555            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
556            public System.DateTime DOB {
557                get {
558                    try {
559                        return ((global::System.DateTime)(this[this.tableDemoTable.DOBColumn]));
560                    }
561                    catch (global::System.InvalidCastException e) {
562                        throw new global::System.Data.StrongTypingException("The value for column \'DOB\' in table \'DemoTable\' is DBNull.", e);
563                    }
564                }
565                set {
566                    this[this.tableDemoTable.DOBColumn] = value;
567                }
568            }
569            
570            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
571            public bool IsIDNull() {
572                return this.IsNull(this.tableDemoTable.IDColumn);
573            }
574            
575            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
576            public void SetIDNull() {
577                this[this.tableDemoTable.IDColumn] = global::System.Convert.DBNull;
578            }
579            
580            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
581            public bool IsNameNull() {
582                return this.IsNull(this.tableDemoTable.NameColumn);
583            }
584            
585            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
586            public void SetNameNull() {
587                this[this.tableDemoTable.NameColumn] = global::System.Convert.DBNull;
588            }
589            
590            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
591            public bool IsDOBNull() {
592                return this.IsNull(this.tableDemoTable.DOBColumn);
593            }
594            
595            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
596            public void SetDOBNull() {
597                this[this.tableDemoTable.DOBColumn] = global::System.Convert.DBNull;
598            }
599        }
600        
601        /// <summary>
602        ///Row event argument class
603        ///</summary>
604        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
605        public class DemoTableRowChangeEvent : global::System.EventArgs {
606            
607            private DemoTableRow eventRow;
608            
609            private global::System.Data.DataRowAction eventAction;
610            
611            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
612            public DemoTableRowChangeEvent(DemoTableRow row, global::System.Data.DataRowAction action) {
613                this.eventRow = row;
614                this.eventAction = action;
615            }
616            
617            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
618            public DemoTableRow Row {
619                get {
620                    return this.eventRow;
621                }
622            }
623            
624            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
625            public global::System.Data.DataRowAction Action {
626                get {
627                    return this.eventAction;
628                }
629            }
630        }
631    }
632}
633
634#pragma warning restore 1591