VINILDataSet_Edition.Designer.cs 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace proba {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("VINILDataSet_Edition")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class VINILDataSet_Edition : global::System.Data.DataSet {
  22. private EditionDataTable tableEdition;
  23. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  24. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  26. public VINILDataSet_Edition() {
  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. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  36. protected VINILDataSet_Edition(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  37. base(info, context, false) {
  38. if ((this.IsBinarySerialized(info, context) == true)) {
  39. this.InitVars(false);
  40. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  41. this.Tables.CollectionChanged += schemaChangedHandler1;
  42. this.Relations.CollectionChanged += schemaChangedHandler1;
  43. return;
  44. }
  45. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  46. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  47. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  48. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  49. if ((ds.Tables["Edition"] != null)) {
  50. base.Tables.Add(new EditionDataTable(ds.Tables["Edition"]));
  51. }
  52. this.DataSetName = ds.DataSetName;
  53. this.Prefix = ds.Prefix;
  54. this.Namespace = ds.Namespace;
  55. this.Locale = ds.Locale;
  56. this.CaseSensitive = ds.CaseSensitive;
  57. this.EnforceConstraints = ds.EnforceConstraints;
  58. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  59. this.InitVars();
  60. }
  61. else {
  62. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  63. }
  64. this.GetSerializationData(info, context);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. base.Tables.CollectionChanged += schemaChangedHandler;
  67. this.Relations.CollectionChanged += schemaChangedHandler;
  68. }
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  70. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  71. [global::System.ComponentModel.Browsable(false)]
  72. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  73. public EditionDataTable Edition {
  74. get {
  75. return this.tableEdition;
  76. }
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  79. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  80. [global::System.ComponentModel.BrowsableAttribute(true)]
  81. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  82. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  83. get {
  84. return this._schemaSerializationMode;
  85. }
  86. set {
  87. this._schemaSerializationMode = value;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  92. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  93. public new global::System.Data.DataTableCollection Tables {
  94. get {
  95. return base.Tables;
  96. }
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  99. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  100. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  101. public new global::System.Data.DataRelationCollection Relations {
  102. get {
  103. return base.Relations;
  104. }
  105. }
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  108. protected override void InitializeDerivedDataSet() {
  109. this.BeginInit();
  110. this.InitClass();
  111. this.EndInit();
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  115. public override global::System.Data.DataSet Clone() {
  116. VINILDataSet_Edition cln = ((VINILDataSet_Edition)(base.Clone()));
  117. cln.InitVars();
  118. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  119. return cln;
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  123. protected override bool ShouldSerializeTables() {
  124. return false;
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  128. protected override bool ShouldSerializeRelations() {
  129. return false;
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  133. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  134. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  135. this.Reset();
  136. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  137. ds.ReadXml(reader);
  138. if ((ds.Tables["Edition"] != null)) {
  139. base.Tables.Add(new EditionDataTable(ds.Tables["Edition"]));
  140. }
  141. this.DataSetName = ds.DataSetName;
  142. this.Prefix = ds.Prefix;
  143. this.Namespace = ds.Namespace;
  144. this.Locale = ds.Locale;
  145. this.CaseSensitive = ds.CaseSensitive;
  146. this.EnforceConstraints = ds.EnforceConstraints;
  147. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  148. this.InitVars();
  149. }
  150. else {
  151. this.ReadXml(reader);
  152. this.InitVars();
  153. }
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  157. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  158. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  159. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  160. stream.Position = 0;
  161. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  165. internal void InitVars() {
  166. this.InitVars(true);
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  170. internal void InitVars(bool initTable) {
  171. this.tableEdition = ((EditionDataTable)(base.Tables["Edition"]));
  172. if ((initTable == true)) {
  173. if ((this.tableEdition != null)) {
  174. this.tableEdition.InitVars();
  175. }
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  180. private void InitClass() {
  181. this.DataSetName = "VINILDataSet_Edition";
  182. this.Prefix = "";
  183. this.Namespace = "http://tempuri.org/VINILDataSet_Edition.xsd";
  184. this.EnforceConstraints = true;
  185. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  186. this.tableEdition = new EditionDataTable();
  187. base.Tables.Add(this.tableEdition);
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  191. private bool ShouldSerializeEdition() {
  192. return false;
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  196. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  197. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  198. this.InitVars();
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  203. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  204. VINILDataSet_Edition ds = new VINILDataSet_Edition();
  205. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  206. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  207. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  208. any.Namespace = ds.Namespace;
  209. sequence.Items.Add(any);
  210. type.Particle = sequence;
  211. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  212. if (xs.Contains(dsSchema.TargetNamespace)) {
  213. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  214. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  215. try {
  216. global::System.Xml.Schema.XmlSchema schema = null;
  217. dsSchema.Write(s1);
  218. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  219. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  220. s2.SetLength(0);
  221. schema.Write(s2);
  222. if ((s1.Length == s2.Length)) {
  223. s1.Position = 0;
  224. s2.Position = 0;
  225. for (; ((s1.Position != s1.Length)
  226. && (s1.ReadByte() == s2.ReadByte())); ) {
  227. ;
  228. }
  229. if ((s1.Position == s1.Length)) {
  230. return type;
  231. }
  232. }
  233. }
  234. }
  235. finally {
  236. if ((s1 != null)) {
  237. s1.Close();
  238. }
  239. if ((s2 != null)) {
  240. s2.Close();
  241. }
  242. }
  243. }
  244. xs.Add(dsSchema);
  245. return type;
  246. }
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  248. public delegate void EditionRowChangeEventHandler(object sender, EditionRowChangeEvent e);
  249. /// <summary>
  250. ///Represents the strongly named DataTable class.
  251. ///</summary>
  252. [global::System.Serializable()]
  253. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  254. public partial class EditionDataTable : global::System.Data.TypedTableBase<EditionRow> {
  255. private global::System.Data.DataColumn columnid_edition;
  256. private global::System.Data.DataColumn columnedition;
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  259. public EditionDataTable() {
  260. this.TableName = "Edition";
  261. this.BeginInit();
  262. this.InitClass();
  263. this.EndInit();
  264. }
  265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  267. internal EditionDataTable(global::System.Data.DataTable table) {
  268. this.TableName = table.TableName;
  269. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  270. this.CaseSensitive = table.CaseSensitive;
  271. }
  272. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  273. this.Locale = table.Locale;
  274. }
  275. if ((table.Namespace != table.DataSet.Namespace)) {
  276. this.Namespace = table.Namespace;
  277. }
  278. this.Prefix = table.Prefix;
  279. this.MinimumCapacity = table.MinimumCapacity;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  283. protected EditionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  284. base(info, context) {
  285. this.InitVars();
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  289. public global::System.Data.DataColumn id_editionColumn {
  290. get {
  291. return this.columnid_edition;
  292. }
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  296. public global::System.Data.DataColumn editionColumn {
  297. get {
  298. return this.columnedition;
  299. }
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  303. [global::System.ComponentModel.Browsable(false)]
  304. public int Count {
  305. get {
  306. return this.Rows.Count;
  307. }
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  311. public EditionRow this[int index] {
  312. get {
  313. return ((EditionRow)(this.Rows[index]));
  314. }
  315. }
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  317. public event EditionRowChangeEventHandler EditionRowChanging;
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  319. public event EditionRowChangeEventHandler EditionRowChanged;
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  321. public event EditionRowChangeEventHandler EditionRowDeleting;
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  323. public event EditionRowChangeEventHandler EditionRowDeleted;
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  326. public void AddEditionRow(EditionRow row) {
  327. this.Rows.Add(row);
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  331. public EditionRow AddEditionRow(string edition) {
  332. EditionRow rowEditionRow = ((EditionRow)(this.NewRow()));
  333. object[] columnValuesArray = new object[] {
  334. null,
  335. edition};
  336. rowEditionRow.ItemArray = columnValuesArray;
  337. this.Rows.Add(rowEditionRow);
  338. return rowEditionRow;
  339. }
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  342. public EditionRow FindByid_edition(int id_edition) {
  343. return ((EditionRow)(this.Rows.Find(new object[] {
  344. id_edition})));
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  348. public override global::System.Data.DataTable Clone() {
  349. EditionDataTable cln = ((EditionDataTable)(base.Clone()));
  350. cln.InitVars();
  351. return cln;
  352. }
  353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  355. protected override global::System.Data.DataTable CreateInstance() {
  356. return new EditionDataTable();
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  360. internal void InitVars() {
  361. this.columnid_edition = base.Columns["id_edition"];
  362. this.columnedition = base.Columns["edition"];
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  366. private void InitClass() {
  367. this.columnid_edition = new global::System.Data.DataColumn("id_edition", typeof(int), null, global::System.Data.MappingType.Element);
  368. base.Columns.Add(this.columnid_edition);
  369. this.columnedition = new global::System.Data.DataColumn("edition", typeof(string), null, global::System.Data.MappingType.Element);
  370. base.Columns.Add(this.columnedition);
  371. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  372. this.columnid_edition}, true));
  373. this.columnid_edition.AutoIncrement = true;
  374. this.columnid_edition.AutoIncrementSeed = -1;
  375. this.columnid_edition.AutoIncrementStep = -1;
  376. this.columnid_edition.AllowDBNull = false;
  377. this.columnid_edition.ReadOnly = true;
  378. this.columnid_edition.Unique = true;
  379. this.columnedition.AllowDBNull = false;
  380. this.columnedition.MaxLength = 10;
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  384. public EditionRow NewEditionRow() {
  385. return ((EditionRow)(this.NewRow()));
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  389. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  390. return new EditionRow(builder);
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  394. protected override global::System.Type GetRowType() {
  395. return typeof(EditionRow);
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  399. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  400. base.OnRowChanged(e);
  401. if ((this.EditionRowChanged != null)) {
  402. this.EditionRowChanged(this, new EditionRowChangeEvent(((EditionRow)(e.Row)), e.Action));
  403. }
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  407. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  408. base.OnRowChanging(e);
  409. if ((this.EditionRowChanging != null)) {
  410. this.EditionRowChanging(this, new EditionRowChangeEvent(((EditionRow)(e.Row)), e.Action));
  411. }
  412. }
  413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  415. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  416. base.OnRowDeleted(e);
  417. if ((this.EditionRowDeleted != null)) {
  418. this.EditionRowDeleted(this, new EditionRowChangeEvent(((EditionRow)(e.Row)), e.Action));
  419. }
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  423. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  424. base.OnRowDeleting(e);
  425. if ((this.EditionRowDeleting != null)) {
  426. this.EditionRowDeleting(this, new EditionRowChangeEvent(((EditionRow)(e.Row)), e.Action));
  427. }
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  431. public void RemoveEditionRow(EditionRow row) {
  432. this.Rows.Remove(row);
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  437. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  438. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  439. VINILDataSet_Edition ds = new VINILDataSet_Edition();
  440. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  441. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  442. any1.MinOccurs = new decimal(0);
  443. any1.MaxOccurs = decimal.MaxValue;
  444. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  445. sequence.Items.Add(any1);
  446. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  447. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  448. any2.MinOccurs = new decimal(1);
  449. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  450. sequence.Items.Add(any2);
  451. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  452. attribute1.Name = "namespace";
  453. attribute1.FixedValue = ds.Namespace;
  454. type.Attributes.Add(attribute1);
  455. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  456. attribute2.Name = "tableTypeName";
  457. attribute2.FixedValue = "EditionDataTable";
  458. type.Attributes.Add(attribute2);
  459. type.Particle = sequence;
  460. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  461. if (xs.Contains(dsSchema.TargetNamespace)) {
  462. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  463. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  464. try {
  465. global::System.Xml.Schema.XmlSchema schema = null;
  466. dsSchema.Write(s1);
  467. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  468. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  469. s2.SetLength(0);
  470. schema.Write(s2);
  471. if ((s1.Length == s2.Length)) {
  472. s1.Position = 0;
  473. s2.Position = 0;
  474. for (; ((s1.Position != s1.Length)
  475. && (s1.ReadByte() == s2.ReadByte())); ) {
  476. ;
  477. }
  478. if ((s1.Position == s1.Length)) {
  479. return type;
  480. }
  481. }
  482. }
  483. }
  484. finally {
  485. if ((s1 != null)) {
  486. s1.Close();
  487. }
  488. if ((s2 != null)) {
  489. s2.Close();
  490. }
  491. }
  492. }
  493. xs.Add(dsSchema);
  494. return type;
  495. }
  496. }
  497. /// <summary>
  498. ///Represents strongly named DataRow class.
  499. ///</summary>
  500. public partial class EditionRow : global::System.Data.DataRow {
  501. private EditionDataTable tableEdition;
  502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  504. internal EditionRow(global::System.Data.DataRowBuilder rb) :
  505. base(rb) {
  506. this.tableEdition = ((EditionDataTable)(this.Table));
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  510. public int id_edition {
  511. get {
  512. return ((int)(this[this.tableEdition.id_editionColumn]));
  513. }
  514. set {
  515. this[this.tableEdition.id_editionColumn] = value;
  516. }
  517. }
  518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  520. public string edition {
  521. get {
  522. return ((string)(this[this.tableEdition.editionColumn]));
  523. }
  524. set {
  525. this[this.tableEdition.editionColumn] = value;
  526. }
  527. }
  528. }
  529. /// <summary>
  530. ///Row event argument class
  531. ///</summary>
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. public class EditionRowChangeEvent : global::System.EventArgs {
  534. private EditionRow eventRow;
  535. private global::System.Data.DataRowAction eventAction;
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  538. public EditionRowChangeEvent(EditionRow row, global::System.Data.DataRowAction action) {
  539. this.eventRow = row;
  540. this.eventAction = action;
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  544. public EditionRow Row {
  545. get {
  546. return this.eventRow;
  547. }
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  551. public global::System.Data.DataRowAction Action {
  552. get {
  553. return this.eventAction;
  554. }
  555. }
  556. }
  557. }
  558. }
  559. namespace proba.VINILDataSet_EditionTableAdapters {
  560. /// <summary>
  561. ///Represents the connection and commands used to retrieve and save data.
  562. ///</summary>
  563. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  564. [global::System.ComponentModel.ToolboxItem(true)]
  565. [global::System.ComponentModel.DataObjectAttribute(true)]
  566. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  567. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  569. public partial class EditionTableAdapter : global::System.ComponentModel.Component {
  570. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  571. private global::System.Data.SqlClient.SqlConnection _connection;
  572. private global::System.Data.SqlClient.SqlTransaction _transaction;
  573. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  574. private bool _clearBeforeFill;
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  577. public EditionTableAdapter() {
  578. this.ClearBeforeFill = true;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  582. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  583. get {
  584. if ((this._adapter == null)) {
  585. this.InitAdapter();
  586. }
  587. return this._adapter;
  588. }
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. internal global::System.Data.SqlClient.SqlConnection Connection {
  593. get {
  594. if ((this._connection == null)) {
  595. this.InitConnection();
  596. }
  597. return this._connection;
  598. }
  599. set {
  600. this._connection = value;
  601. if ((this.Adapter.InsertCommand != null)) {
  602. this.Adapter.InsertCommand.Connection = value;
  603. }
  604. if ((this.Adapter.DeleteCommand != null)) {
  605. this.Adapter.DeleteCommand.Connection = value;
  606. }
  607. if ((this.Adapter.UpdateCommand != null)) {
  608. this.Adapter.UpdateCommand.Connection = value;
  609. }
  610. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  611. if ((this.CommandCollection[i] != null)) {
  612. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  613. }
  614. }
  615. }
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  620. get {
  621. return this._transaction;
  622. }
  623. set {
  624. this._transaction = value;
  625. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  626. this.CommandCollection[i].Transaction = this._transaction;
  627. }
  628. if (((this.Adapter != null)
  629. && (this.Adapter.DeleteCommand != null))) {
  630. this.Adapter.DeleteCommand.Transaction = this._transaction;
  631. }
  632. if (((this.Adapter != null)
  633. && (this.Adapter.InsertCommand != null))) {
  634. this.Adapter.InsertCommand.Transaction = this._transaction;
  635. }
  636. if (((this.Adapter != null)
  637. && (this.Adapter.UpdateCommand != null))) {
  638. this.Adapter.UpdateCommand.Transaction = this._transaction;
  639. }
  640. }
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  644. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  645. get {
  646. if ((this._commandCollection == null)) {
  647. this.InitCommandCollection();
  648. }
  649. return this._commandCollection;
  650. }
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. public bool ClearBeforeFill {
  655. get {
  656. return this._clearBeforeFill;
  657. }
  658. set {
  659. this._clearBeforeFill = value;
  660. }
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  664. private void InitAdapter() {
  665. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  666. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  667. tableMapping.SourceTable = "Table";
  668. tableMapping.DataSetTable = "Edition";
  669. tableMapping.ColumnMappings.Add("id_edition", "id_edition");
  670. tableMapping.ColumnMappings.Add("edition", "edition");
  671. this._adapter.TableMappings.Add(tableMapping);
  672. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  673. this._adapter.DeleteCommand.Connection = this.Connection;
  674. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Edition] WHERE (([id_edition] = @Original_id_edition) AND ([ed" +
  675. "ition] = @Original_edition))";
  676. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  677. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_edition", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_edition", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  678. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edition", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edition", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  679. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  680. this._adapter.InsertCommand.Connection = this.Connection;
  681. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Edition] ([edition]) VALUES (@edition);\r\nSELECT id_edition, ed" +
  682. "ition FROM Edition WHERE (id_edition = SCOPE_IDENTITY())";
  683. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  684. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edition", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edition", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  685. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  686. this._adapter.UpdateCommand.Connection = this.Connection;
  687. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Edition] SET [edition] = @edition WHERE (([id_edition] = @Original_" +
  688. "id_edition) AND ([edition] = @Original_edition));\r\nSELECT id_edition, edition FR" +
  689. "OM Edition WHERE (id_edition = @id_edition)";
  690. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edition", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edition", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_edition", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_edition", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edition", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edition", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_edition", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_edition", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  698. private void InitConnection() {
  699. this._connection = new global::System.Data.SqlClient.SqlConnection();
  700. this._connection.ConnectionString = global::proba.Properties.Settings.Default.VINILConnectionString_Country;
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  704. private void InitCommandCollection() {
  705. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  706. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  707. this._commandCollection[0].Connection = this.Connection;
  708. this._commandCollection[0].CommandText = "SELECT id_edition, edition FROM dbo.Edition";
  709. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  713. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  714. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  715. public virtual int Fill(VINILDataSet_Edition.EditionDataTable dataTable) {
  716. this.Adapter.SelectCommand = this.CommandCollection[0];
  717. if ((this.ClearBeforeFill == true)) {
  718. dataTable.Clear();
  719. }
  720. int returnValue = this.Adapter.Fill(dataTable);
  721. return returnValue;
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  727. public virtual VINILDataSet_Edition.EditionDataTable GetData() {
  728. this.Adapter.SelectCommand = this.CommandCollection[0];
  729. VINILDataSet_Edition.EditionDataTable dataTable = new VINILDataSet_Edition.EditionDataTable();
  730. this.Adapter.Fill(dataTable);
  731. return dataTable;
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  736. public virtual int Update(VINILDataSet_Edition.EditionDataTable dataTable) {
  737. return this.Adapter.Update(dataTable);
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  742. public virtual int Update(VINILDataSet_Edition dataSet) {
  743. return this.Adapter.Update(dataSet, "Edition");
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  748. public virtual int Update(global::System.Data.DataRow dataRow) {
  749. return this.Adapter.Update(new global::System.Data.DataRow[] {
  750. dataRow});
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  755. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  756. return this.Adapter.Update(dataRows);
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  762. public virtual int Delete(int Original_id_edition, string Original_edition) {
  763. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_edition));
  764. if ((Original_edition == null)) {
  765. throw new global::System.ArgumentNullException("Original_edition");
  766. }
  767. else {
  768. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_edition));
  769. }
  770. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  771. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  772. != global::System.Data.ConnectionState.Open)) {
  773. this.Adapter.DeleteCommand.Connection.Open();
  774. }
  775. try {
  776. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  777. return returnValue;
  778. }
  779. finally {
  780. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  781. this.Adapter.DeleteCommand.Connection.Close();
  782. }
  783. }
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  787. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  788. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  789. public virtual int Insert(string edition) {
  790. if ((edition == null)) {
  791. throw new global::System.ArgumentNullException("edition");
  792. }
  793. else {
  794. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(edition));
  795. }
  796. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  797. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  798. != global::System.Data.ConnectionState.Open)) {
  799. this.Adapter.InsertCommand.Connection.Open();
  800. }
  801. try {
  802. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  803. return returnValue;
  804. }
  805. finally {
  806. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  807. this.Adapter.InsertCommand.Connection.Close();
  808. }
  809. }
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  815. public virtual int Update(string edition, int Original_id_edition, string Original_edition, int id_edition) {
  816. if ((edition == null)) {
  817. throw new global::System.ArgumentNullException("edition");
  818. }
  819. else {
  820. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(edition));
  821. }
  822. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_edition));
  823. if ((Original_edition == null)) {
  824. throw new global::System.ArgumentNullException("Original_edition");
  825. }
  826. else {
  827. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_edition));
  828. }
  829. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_edition));
  830. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  831. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  832. != global::System.Data.ConnectionState.Open)) {
  833. this.Adapter.UpdateCommand.Connection.Open();
  834. }
  835. try {
  836. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  837. return returnValue;
  838. }
  839. finally {
  840. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  841. this.Adapter.UpdateCommand.Connection.Close();
  842. }
  843. }
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  848. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  849. public virtual int Update(string edition, int Original_id_edition, string Original_edition) {
  850. return this.Update(edition, Original_id_edition, Original_edition, Original_id_edition);
  851. }
  852. }
  853. /// <summary>
  854. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  855. ///</summary>
  856. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  857. [global::System.ComponentModel.ToolboxItem(true)]
  858. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  859. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  861. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  862. private UpdateOrderOption _updateOrder;
  863. private EditionTableAdapter _editionTableAdapter;
  864. private bool _backupDataSetBeforeUpdate;
  865. private global::System.Data.IDbConnection _connection;
  866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  868. public UpdateOrderOption UpdateOrder {
  869. get {
  870. return this._updateOrder;
  871. }
  872. set {
  873. this._updateOrder = value;
  874. }
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  878. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  879. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  880. "a", "System.Drawing.Design.UITypeEditor")]
  881. public EditionTableAdapter EditionTableAdapter {
  882. get {
  883. return this._editionTableAdapter;
  884. }
  885. set {
  886. this._editionTableAdapter = value;
  887. }
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  891. public bool BackupDataSetBeforeUpdate {
  892. get {
  893. return this._backupDataSetBeforeUpdate;
  894. }
  895. set {
  896. this._backupDataSetBeforeUpdate = value;
  897. }
  898. }
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  901. [global::System.ComponentModel.Browsable(false)]
  902. public global::System.Data.IDbConnection Connection {
  903. get {
  904. if ((this._connection != null)) {
  905. return this._connection;
  906. }
  907. if (((this._editionTableAdapter != null)
  908. && (this._editionTableAdapter.Connection != null))) {
  909. return this._editionTableAdapter.Connection;
  910. }
  911. return null;
  912. }
  913. set {
  914. this._connection = value;
  915. }
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  919. [global::System.ComponentModel.Browsable(false)]
  920. public int TableAdapterInstanceCount {
  921. get {
  922. int count = 0;
  923. if ((this._editionTableAdapter != null)) {
  924. count = (count + 1);
  925. }
  926. return count;
  927. }
  928. }
  929. /// <summary>
  930. ///Update rows in top-down order.
  931. ///</summary>
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  934. private int UpdateUpdatedRows(VINILDataSet_Edition dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  935. int result = 0;
  936. if ((this._editionTableAdapter != null)) {
  937. global::System.Data.DataRow[] updatedRows = dataSet.Edition.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  938. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  939. if (((updatedRows != null)
  940. && (0 < updatedRows.Length))) {
  941. result = (result + this._editionTableAdapter.Update(updatedRows));
  942. allChangedRows.AddRange(updatedRows);
  943. }
  944. }
  945. return result;
  946. }
  947. /// <summary>
  948. ///Insert rows in top-down order.
  949. ///</summary>
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  952. private int UpdateInsertedRows(VINILDataSet_Edition dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  953. int result = 0;
  954. if ((this._editionTableAdapter != null)) {
  955. global::System.Data.DataRow[] addedRows = dataSet.Edition.Select(null, null, global::System.Data.DataViewRowState.Added);
  956. if (((addedRows != null)
  957. && (0 < addedRows.Length))) {
  958. result = (result + this._editionTableAdapter.Update(addedRows));
  959. allAddedRows.AddRange(addedRows);
  960. }
  961. }
  962. return result;
  963. }
  964. /// <summary>
  965. ///Delete rows in bottom-up order.
  966. ///</summary>
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  969. private int UpdateDeletedRows(VINILDataSet_Edition dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  970. int result = 0;
  971. if ((this._editionTableAdapter != null)) {
  972. global::System.Data.DataRow[] deletedRows = dataSet.Edition.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  973. if (((deletedRows != null)
  974. && (0 < deletedRows.Length))) {
  975. result = (result + this._editionTableAdapter.Update(deletedRows));
  976. allChangedRows.AddRange(deletedRows);
  977. }
  978. }
  979. return result;
  980. }
  981. /// <summary>
  982. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  983. ///</summary>
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  986. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  987. if (((updatedRows == null)
  988. || (updatedRows.Length < 1))) {
  989. return updatedRows;
  990. }
  991. if (((allAddedRows == null)
  992. || (allAddedRows.Count < 1))) {
  993. return updatedRows;
  994. }
  995. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  996. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  997. global::System.Data.DataRow row = updatedRows[i];
  998. if ((allAddedRows.Contains(row) == false)) {
  999. realUpdatedRows.Add(row);
  1000. }
  1001. }
  1002. return realUpdatedRows.ToArray();
  1003. }
  1004. /// <summary>
  1005. ///Update all changes to the dataset.
  1006. ///</summary>
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1009. public virtual int UpdateAll(VINILDataSet_Edition dataSet) {
  1010. if ((dataSet == null)) {
  1011. throw new global::System.ArgumentNullException("dataSet");
  1012. }
  1013. if ((dataSet.HasChanges() == false)) {
  1014. return 0;
  1015. }
  1016. if (((this._editionTableAdapter != null)
  1017. && (this.MatchTableAdapterConnection(this._editionTableAdapter.Connection) == false))) {
  1018. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1019. "r, должны использовать одинаковую строку подключения.");
  1020. }
  1021. global::System.Data.IDbConnection workConnection = this.Connection;
  1022. if ((workConnection == null)) {
  1023. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1024. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1025. }
  1026. bool workConnOpened = false;
  1027. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1028. == global::System.Data.ConnectionState.Broken)) {
  1029. workConnection.Close();
  1030. }
  1031. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1032. workConnection.Open();
  1033. workConnOpened = true;
  1034. }
  1035. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1036. if ((workTransaction == null)) {
  1037. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1038. "и или текущее состояние не позволяет начать транзакцию.");
  1039. }
  1040. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1041. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1042. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1043. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1044. int result = 0;
  1045. global::System.Data.DataSet backupDataSet = null;
  1046. if (this.BackupDataSetBeforeUpdate) {
  1047. backupDataSet = new global::System.Data.DataSet();
  1048. backupDataSet.Merge(dataSet);
  1049. }
  1050. try {
  1051. // ---- Prepare for update -----------
  1052. //
  1053. if ((this._editionTableAdapter != null)) {
  1054. revertConnections.Add(this._editionTableAdapter, this._editionTableAdapter.Connection);
  1055. this._editionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1056. this._editionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1057. if (this._editionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1058. this._editionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1059. adaptersWithAcceptChangesDuringUpdate.Add(this._editionTableAdapter.Adapter);
  1060. }
  1061. }
  1062. //
  1063. //---- Perform updates -----------
  1064. //
  1065. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1066. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1067. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1068. }
  1069. else {
  1070. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1071. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1072. }
  1073. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1074. //
  1075. //---- Commit updates -----------
  1076. //
  1077. workTransaction.Commit();
  1078. if ((0 < allAddedRows.Count)) {
  1079. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1080. allAddedRows.CopyTo(rows);
  1081. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1082. global::System.Data.DataRow row = rows[i];
  1083. row.AcceptChanges();
  1084. }
  1085. }
  1086. if ((0 < allChangedRows.Count)) {
  1087. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1088. allChangedRows.CopyTo(rows);
  1089. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1090. global::System.Data.DataRow row = rows[i];
  1091. row.AcceptChanges();
  1092. }
  1093. }
  1094. }
  1095. catch (global::System.Exception ex) {
  1096. workTransaction.Rollback();
  1097. // ---- Restore the dataset -----------
  1098. if (this.BackupDataSetBeforeUpdate) {
  1099. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1100. dataSet.Clear();
  1101. dataSet.Merge(backupDataSet);
  1102. }
  1103. else {
  1104. if ((0 < allAddedRows.Count)) {
  1105. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1106. allAddedRows.CopyTo(rows);
  1107. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1108. global::System.Data.DataRow row = rows[i];
  1109. row.AcceptChanges();
  1110. row.SetAdded();
  1111. }
  1112. }
  1113. }
  1114. throw ex;
  1115. }
  1116. finally {
  1117. if (workConnOpened) {
  1118. workConnection.Close();
  1119. }
  1120. if ((this._editionTableAdapter != null)) {
  1121. this._editionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._editionTableAdapter]));
  1122. this._editionTableAdapter.Transaction = null;
  1123. }
  1124. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1125. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1126. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1127. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1128. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1129. adapter.AcceptChangesDuringUpdate = true;
  1130. }
  1131. }
  1132. }
  1133. return result;
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1137. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1138. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1139. }
  1140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1142. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1143. if ((this._connection != null)) {
  1144. return true;
  1145. }
  1146. if (((this.Connection == null)
  1147. || (inputConnection == null))) {
  1148. return true;
  1149. }
  1150. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1151. return true;
  1152. }
  1153. return false;
  1154. }
  1155. /// <summary>
  1156. ///Update Order Option
  1157. ///</summary>
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1159. public enum UpdateOrderOption {
  1160. InsertUpdateDelete = 0,
  1161. UpdateInsertDelete = 1,
  1162. }
  1163. /// <summary>
  1164. ///Used to sort self-referenced table's rows
  1165. ///</summary>
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1167. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1168. private global::System.Data.DataRelation _relation;
  1169. private int _childFirst;
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1172. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1173. this._relation = relation;
  1174. if (childFirst) {
  1175. this._childFirst = -1;
  1176. }
  1177. else {
  1178. this._childFirst = 1;
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1183. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1184. global::System.Diagnostics.Debug.Assert((row != null));
  1185. global::System.Data.DataRow root = row;
  1186. distance = 0;
  1187. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  1188. traversedRows[row] = row;
  1189. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1190. for (
  1191. ; ((parent != null)
  1192. && (traversedRows.ContainsKey(parent) == false));
  1193. ) {
  1194. distance = (distance + 1);
  1195. root = parent;
  1196. traversedRows[parent] = parent;
  1197. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1198. }
  1199. if ((distance == 0)) {
  1200. traversedRows.Clear();
  1201. traversedRows[row] = row;
  1202. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1203. for (
  1204. ; ((parent != null)
  1205. && (traversedRows.ContainsKey(parent) == false));
  1206. ) {
  1207. distance = (distance + 1);
  1208. root = parent;
  1209. traversedRows[parent] = parent;
  1210. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1211. }
  1212. }
  1213. return root;
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1217. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1218. if (object.ReferenceEquals(row1, row2)) {
  1219. return 0;
  1220. }
  1221. if ((row1 == null)) {
  1222. return -1;
  1223. }
  1224. if ((row2 == null)) {
  1225. return 1;
  1226. }
  1227. int distance1 = 0;
  1228. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1229. int distance2 = 0;
  1230. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1231. if (object.ReferenceEquals(root1, root2)) {
  1232. return (this._childFirst * distance1.CompareTo(distance2));
  1233. }
  1234. else {
  1235. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1236. && (root2.Table != null)));
  1237. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1238. return -1;
  1239. }
  1240. else {
  1241. return 1;
  1242. }
  1243. }
  1244. }
  1245. }
  1246. }
  1247. }
  1248. #pragma warning restore 1591