PageRenderTime 49ms CodeModel.GetById 15ms 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. #pragma warning disable 1591
  11. namespace CSVstoGetWrapperObject {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  16. [global::System.Serializable()]
  17. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  18. [global::System.ComponentModel.ToolboxItem(true)]
  19. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  20. [global::System.Xml.Serialization.XmlRootAttribute("DemoData")]
  21. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  22. public partial class DemoData : global::System.Data.DataSet {
  23. private DemoTableDataTable tableDemoTable;
  24. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  25. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26. public DemoData() {
  27. this.BeginInit();
  28. this.InitClass();
  29. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  30. base.Tables.CollectionChanged += schemaChangedHandler;
  31. base.Relations.CollectionChanged += schemaChangedHandler;
  32. this.EndInit();
  33. }
  34. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  35. protected DemoData(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  36. base(info, context, false) {
  37. if ((this.IsBinarySerialized(info, context) == true)) {
  38. this.InitVars(false);
  39. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  40. this.Tables.CollectionChanged += schemaChangedHandler1;
  41. this.Relations.CollectionChanged += schemaChangedHandler1;
  42. return;
  43. }
  44. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  45. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  46. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  47. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  48. if ((ds.Tables["DemoTable"] != null)) {
  49. base.Tables.Add(new DemoTableDataTable(ds.Tables["DemoTable"]));
  50. }
  51. this.DataSetName = ds.DataSetName;
  52. this.Prefix = ds.Prefix;
  53. this.Namespace = ds.Namespace;
  54. this.Locale = ds.Locale;
  55. this.CaseSensitive = ds.CaseSensitive;
  56. this.EnforceConstraints = ds.EnforceConstraints;
  57. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  58. this.InitVars();
  59. }
  60. else {
  61. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. }
  63. this.GetSerializationData(info, context);
  64. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  65. base.Tables.CollectionChanged += schemaChangedHandler;
  66. this.Relations.CollectionChanged += schemaChangedHandler;
  67. }
  68. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  69. [global::System.ComponentModel.Browsable(false)]
  70. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  71. public DemoTableDataTable DemoTable {
  72. get {
  73. return this.tableDemoTable;
  74. }
  75. }
  76. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  77. [global::System.ComponentModel.BrowsableAttribute(true)]
  78. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  79. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  80. get {
  81. return this._schemaSerializationMode;
  82. }
  83. set {
  84. this._schemaSerializationMode = value;
  85. }
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  88. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  89. public new global::System.Data.DataTableCollection Tables {
  90. get {
  91. return base.Tables;
  92. }
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  95. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  96. public new global::System.Data.DataRelationCollection Relations {
  97. get {
  98. return base.Relations;
  99. }
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  102. protected override void InitializeDerivedDataSet() {
  103. this.BeginInit();
  104. this.InitClass();
  105. this.EndInit();
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  108. public override global::System.Data.DataSet Clone() {
  109. DemoData cln = ((DemoData)(base.Clone()));
  110. cln.InitVars();
  111. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  112. return cln;
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  115. protected override bool ShouldSerializeTables() {
  116. return false;
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. protected override bool ShouldSerializeRelations() {
  120. return false;
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  123. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  124. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  125. this.Reset();
  126. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  127. ds.ReadXml(reader);
  128. if ((ds.Tables["DemoTable"] != null)) {
  129. base.Tables.Add(new DemoTableDataTable(ds.Tables["DemoTable"]));
  130. }
  131. this.DataSetName = ds.DataSetName;
  132. this.Prefix = ds.Prefix;
  133. this.Namespace = ds.Namespace;
  134. this.Locale = ds.Locale;
  135. this.CaseSensitive = ds.CaseSensitive;
  136. this.EnforceConstraints = ds.EnforceConstraints;
  137. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  138. this.InitVars();
  139. }
  140. else {
  141. this.ReadXml(reader);
  142. this.InitVars();
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  147. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  148. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  149. stream.Position = 0;
  150. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. internal void InitVars() {
  154. this.InitVars(true);
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. internal void InitVars(bool initTable) {
  158. this.tableDemoTable = ((DemoTableDataTable)(base.Tables["DemoTable"]));
  159. if ((initTable == true)) {
  160. if ((this.tableDemoTable != null)) {
  161. this.tableDemoTable.InitVars();
  162. }
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. private void InitClass() {
  167. this.DataSetName = "DemoData";
  168. this.Prefix = "";
  169. this.Namespace = "http://tempuri.org/DemoData.xsd";
  170. this.EnforceConstraints = true;
  171. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  172. this.tableDemoTable = new DemoTableDataTable();
  173. base.Tables.Add(this.tableDemoTable);
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. private bool ShouldSerializeDemoTable() {
  177. return false;
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  181. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  182. this.InitVars();
  183. }
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  186. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  187. DemoData ds = new DemoData();
  188. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  189. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  190. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  191. any.Namespace = ds.Namespace;
  192. sequence.Items.Add(any);
  193. type.Particle = sequence;
  194. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  195. if (xs.Contains(dsSchema.TargetNamespace)) {
  196. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  197. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  198. try {
  199. global::System.Xml.Schema.XmlSchema schema = null;
  200. dsSchema.Write(s1);
  201. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  202. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  203. s2.SetLength(0);
  204. schema.Write(s2);
  205. if ((s1.Length == s2.Length)) {
  206. s1.Position = 0;
  207. s2.Position = 0;
  208. for (; ((s1.Position != s1.Length)
  209. && (s1.ReadByte() == s2.ReadByte())); ) {
  210. ;
  211. }
  212. if ((s1.Position == s1.Length)) {
  213. return type;
  214. }
  215. }
  216. }
  217. }
  218. finally {
  219. if ((s1 != null)) {
  220. s1.Close();
  221. }
  222. if ((s2 != null)) {
  223. s2.Close();
  224. }
  225. }
  226. }
  227. xs.Add(dsSchema);
  228. return type;
  229. }
  230. public delegate void DemoTableRowChangeEventHandler(object sender, DemoTableRowChangeEvent e);
  231. /// <summary>
  232. ///Represents the strongly named DataTable class.
  233. ///</summary>
  234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  235. [global::System.Serializable()]
  236. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  237. public partial class DemoTableDataTable : global::System.Data.TypedTableBase<DemoTableRow> {
  238. private global::System.Data.DataColumn columnID;
  239. private global::System.Data.DataColumn columnName;
  240. private global::System.Data.DataColumn columnDOB;
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. public DemoTableDataTable() {
  243. this.TableName = "DemoTable";
  244. this.BeginInit();
  245. this.InitClass();
  246. this.EndInit();
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. internal DemoTableDataTable(global::System.Data.DataTable table) {
  250. this.TableName = table.TableName;
  251. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  252. this.CaseSensitive = table.CaseSensitive;
  253. }
  254. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  255. this.Locale = table.Locale;
  256. }
  257. if ((table.Namespace != table.DataSet.Namespace)) {
  258. this.Namespace = table.Namespace;
  259. }
  260. this.Prefix = table.Prefix;
  261. this.MinimumCapacity = table.MinimumCapacity;
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. protected DemoTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  265. base(info, context) {
  266. this.InitVars();
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. public global::System.Data.DataColumn IDColumn {
  270. get {
  271. return this.columnID;
  272. }
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. public global::System.Data.DataColumn NameColumn {
  276. get {
  277. return this.columnName;
  278. }
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  281. public global::System.Data.DataColumn DOBColumn {
  282. get {
  283. return this.columnDOB;
  284. }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.ComponentModel.Browsable(false)]
  288. public int Count {
  289. get {
  290. return this.Rows.Count;
  291. }
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  294. public DemoTableRow this[int index] {
  295. get {
  296. return ((DemoTableRow)(this.Rows[index]));
  297. }
  298. }
  299. public event DemoTableRowChangeEventHandler DemoTableRowChanging;
  300. public event DemoTableRowChangeEventHandler DemoTableRowChanged;
  301. public event DemoTableRowChangeEventHandler DemoTableRowDeleting;
  302. public event DemoTableRowChangeEventHandler DemoTableRowDeleted;
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  304. public void AddDemoTableRow(DemoTableRow row) {
  305. this.Rows.Add(row);
  306. }
  307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  308. public DemoTableRow AddDemoTableRow(string Name, System.DateTime DOB) {
  309. DemoTableRow rowDemoTableRow = ((DemoTableRow)(this.NewRow()));
  310. object[] columnValuesArray = new object[] {
  311. null,
  312. Name,
  313. DOB};
  314. rowDemoTableRow.ItemArray = columnValuesArray;
  315. this.Rows.Add(rowDemoTableRow);
  316. return rowDemoTableRow;
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. public override global::System.Data.DataTable Clone() {
  320. DemoTableDataTable cln = ((DemoTableDataTable)(base.Clone()));
  321. cln.InitVars();
  322. return cln;
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. protected override global::System.Data.DataTable CreateInstance() {
  326. return new DemoTableDataTable();
  327. }
  328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  329. internal void InitVars() {
  330. this.columnID = base.Columns["ID"];
  331. this.columnName = base.Columns["Name"];
  332. this.columnDOB = base.Columns["DOB"];
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. private void InitClass() {
  336. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  337. base.Columns.Add(this.columnID);
  338. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  339. base.Columns.Add(this.columnName);
  340. this.columnDOB = new global::System.Data.DataColumn("DOB", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  341. base.Columns.Add(this.columnDOB);
  342. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  343. this.columnID}, false));
  344. this.columnID.AutoIncrement = true;
  345. this.columnID.AutoIncrementSeed = 1;
  346. this.columnID.Unique = true;
  347. }
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  349. public DemoTableRow NewDemoTableRow() {
  350. return ((DemoTableRow)(this.NewRow()));
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  354. return new DemoTableRow(builder);
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. protected override global::System.Type GetRowType() {
  358. return typeof(DemoTableRow);
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  362. base.OnRowChanged(e);
  363. if ((this.DemoTableRowChanged != null)) {
  364. this.DemoTableRowChanged(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
  365. }
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  369. base.OnRowChanging(e);
  370. if ((this.DemoTableRowChanging != null)) {
  371. this.DemoTableRowChanging(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
  372. }
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  375. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  376. base.OnRowDeleted(e);
  377. if ((this.DemoTableRowDeleted != null)) {
  378. this.DemoTableRowDeleted(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
  379. }
  380. }
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  382. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  383. base.OnRowDeleting(e);
  384. if ((this.DemoTableRowDeleting != null)) {
  385. this.DemoTableRowDeleting(this, new DemoTableRowChangeEvent(((DemoTableRow)(e.Row)), e.Action));
  386. }
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. public void RemoveDemoTableRow(DemoTableRow row) {
  390. this.Rows.Remove(row);
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  393. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  394. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  395. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  396. DemoData ds = new DemoData();
  397. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  398. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  399. any1.MinOccurs = new decimal(0);
  400. any1.MaxOccurs = decimal.MaxValue;
  401. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  402. sequence.Items.Add(any1);
  403. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  404. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  405. any2.MinOccurs = new decimal(1);
  406. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  407. sequence.Items.Add(any2);
  408. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  409. attribute1.Name = "namespace";
  410. attribute1.FixedValue = ds.Namespace;
  411. type.Attributes.Add(attribute1);
  412. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  413. attribute2.Name = "tableTypeName";
  414. attribute2.FixedValue = "DemoTableDataTable";
  415. type.Attributes.Add(attribute2);
  416. type.Particle = sequence;
  417. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  418. if (xs.Contains(dsSchema.TargetNamespace)) {
  419. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  420. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  421. try {
  422. global::System.Xml.Schema.XmlSchema schema = null;
  423. dsSchema.Write(s1);
  424. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  425. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  426. s2.SetLength(0);
  427. schema.Write(s2);
  428. if ((s1.Length == s2.Length)) {
  429. s1.Position = 0;
  430. s2.Position = 0;
  431. for (; ((s1.Position != s1.Length)
  432. && (s1.ReadByte() == s2.ReadByte())); ) {
  433. ;
  434. }
  435. if ((s1.Position == s1.Length)) {
  436. return type;
  437. }
  438. }
  439. }
  440. }
  441. finally {
  442. if ((s1 != null)) {
  443. s1.Close();
  444. }
  445. if ((s2 != null)) {
  446. s2.Close();
  447. }
  448. }
  449. }
  450. xs.Add(dsSchema);
  451. return type;
  452. }
  453. }
  454. /// <summary>
  455. ///Represents strongly named DataRow class.
  456. ///</summary>
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  458. public partial class DemoTableRow : global::System.Data.DataRow {
  459. private DemoTableDataTable tableDemoTable;
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461. internal DemoTableRow(global::System.Data.DataRowBuilder rb) :
  462. base(rb) {
  463. this.tableDemoTable = ((DemoTableDataTable)(this.Table));
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  466. public int ID {
  467. get {
  468. try {
  469. return ((int)(this[this.tableDemoTable.IDColumn]));
  470. }
  471. catch (global::System.InvalidCastException e) {
  472. throw new global::System.Data.StrongTypingException("The value for column \'ID\' in table \'DemoTable\' is DBNull.", e);
  473. }
  474. }
  475. set {
  476. this[this.tableDemoTable.IDColumn] = value;
  477. }
  478. }
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  480. public string Name {
  481. get {
  482. try {
  483. return ((string)(this[this.tableDemoTable.NameColumn]));
  484. }
  485. catch (global::System.InvalidCastException e) {
  486. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'DemoTable\' is DBNull.", e);
  487. }
  488. }
  489. set {
  490. this[this.tableDemoTable.NameColumn] = value;
  491. }
  492. }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  494. public System.DateTime DOB {
  495. get {
  496. try {
  497. return ((global::System.DateTime)(this[this.tableDemoTable.DOBColumn]));
  498. }
  499. catch (global::System.InvalidCastException e) {
  500. throw new global::System.Data.StrongTypingException("The value for column \'DOB\' in table \'DemoTable\' is DBNull.", e);
  501. }
  502. }
  503. set {
  504. this[this.tableDemoTable.DOBColumn] = value;
  505. }
  506. }
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  508. public bool IsIDNull() {
  509. return this.IsNull(this.tableDemoTable.IDColumn);
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. public void SetIDNull() {
  513. this[this.tableDemoTable.IDColumn] = global::System.Convert.DBNull;
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. public bool IsNameNull() {
  517. return this.IsNull(this.tableDemoTable.NameColumn);
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. public void SetNameNull() {
  521. this[this.tableDemoTable.NameColumn] = global::System.Convert.DBNull;
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  524. public bool IsDOBNull() {
  525. return this.IsNull(this.tableDemoTable.DOBColumn);
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. public void SetDOBNull() {
  529. this[this.tableDemoTable.DOBColumn] = global::System.Convert.DBNull;
  530. }
  531. }
  532. /// <summary>
  533. ///Row event argument class
  534. ///</summary>
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  536. public class DemoTableRowChangeEvent : global::System.EventArgs {
  537. private DemoTableRow eventRow;
  538. private global::System.Data.DataRowAction eventAction;
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. public DemoTableRowChangeEvent(DemoTableRow row, global::System.Data.DataRowAction action) {
  541. this.eventRow = row;
  542. this.eventAction = action;
  543. }
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  545. public DemoTableRow Row {
  546. get {
  547. return this.eventRow;
  548. }
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. public global::System.Data.DataRowAction Action {
  552. get {
  553. return this.eventAction;
  554. }
  555. }
  556. }
  557. }
  558. }
  559. #pragma warning restore 1591