PasechnikovRomanYurevich_ISPDataSet.Designer.cs 102 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace PasechnikovRomanYurevch_ISP {
  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("PasechnikovRomanYurevich_ISPDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class PasechnikovRomanYurevich_ISPDataSet : global::System.Data.DataSet {
  22. private product_b_import1DataTable tableproduct_b_import1;
  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", "16.0.0.0")]
  26. public PasechnikovRomanYurevich_ISPDataSet() {
  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", "16.0.0.0")]
  36. protected PasechnikovRomanYurevich_ISPDataSet(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["product_b_import1"] != null)) {
  50. base.Tables.Add(new product_b_import1DataTable(ds.Tables["product_b_import1"]));
  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", "16.0.0.0")]
  71. [global::System.ComponentModel.Browsable(false)]
  72. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  73. public product_b_import1DataTable product_b_import1 {
  74. get {
  75. return this.tableproduct_b_import1;
  76. }
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  79. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.0.0.0")]
  115. public override global::System.Data.DataSet Clone() {
  116. PasechnikovRomanYurevich_ISPDataSet cln = ((PasechnikovRomanYurevich_ISPDataSet)(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", "16.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", "16.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", "16.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["product_b_import1"] != null)) {
  139. base.Tables.Add(new product_b_import1DataTable(ds.Tables["product_b_import1"]));
  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", "16.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", "16.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", "16.0.0.0")]
  170. internal void InitVars(bool initTable) {
  171. this.tableproduct_b_import1 = ((product_b_import1DataTable)(base.Tables["product_b_import1"]));
  172. if ((initTable == true)) {
  173. if ((this.tableproduct_b_import1 != null)) {
  174. this.tableproduct_b_import1.InitVars();
  175. }
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. private void InitClass() {
  181. this.DataSetName = "PasechnikovRomanYurevich_ISPDataSet";
  182. this.Prefix = "";
  183. this.Namespace = "http://tempuri.org/PasechnikovRomanYurevich_ISPDataSet.xsd";
  184. this.EnforceConstraints = true;
  185. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  186. this.tableproduct_b_import1 = new product_b_import1DataTable();
  187. base.Tables.Add(this.tableproduct_b_import1);
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. private bool ShouldSerializeproduct_b_import1() {
  192. return false;
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
  203. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  204. PasechnikovRomanYurevich_ISPDataSet ds = new PasechnikovRomanYurevich_ISPDataSet();
  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", "16.0.0.0")]
  248. public delegate void product_b_import1RowChangeEventHandler(object sender, product_b_import1RowChangeEvent 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 product_b_import1DataTable : global::System.Data.TypedTableBase<product_b_import1Row> {
  255. private global::System.Data.DataColumn columnНаименование_товара;
  256. private global::System.Data.DataColumn columnГлавное_изображение;
  257. private global::System.Data.DataColumn columnПроизводитель;
  258. private global::System.Data.DataColumn columnАктивен;
  259. private global::System.Data.DataColumn columnЦена;
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  262. public product_b_import1DataTable() {
  263. this.TableName = "product_b_import1";
  264. this.BeginInit();
  265. this.InitClass();
  266. this.EndInit();
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  270. internal product_b_import1DataTable(global::System.Data.DataTable table) {
  271. this.TableName = table.TableName;
  272. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  273. this.CaseSensitive = table.CaseSensitive;
  274. }
  275. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  276. this.Locale = table.Locale;
  277. }
  278. if ((table.Namespace != table.DataSet.Namespace)) {
  279. this.Namespace = table.Namespace;
  280. }
  281. this.Prefix = table.Prefix;
  282. this.MinimumCapacity = table.MinimumCapacity;
  283. }
  284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  286. protected product_b_import1DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  287. base(info, context) {
  288. this.InitVars();
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. public global::System.Data.DataColumn Наименование_товараColumn {
  293. get {
  294. return this.columnНаименование_товара;
  295. }
  296. }
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  299. public global::System.Data.DataColumn Главное_изображениеColumn {
  300. get {
  301. return this.columnГлавное_изображение;
  302. }
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  306. public global::System.Data.DataColumn ПроизводительColumn {
  307. get {
  308. return this.columnПроизводитель;
  309. }
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  313. public global::System.Data.DataColumn АктивенColumn {
  314. get {
  315. return this.columnАктивен;
  316. }
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. public global::System.Data.DataColumn ЦенаColumn {
  321. get {
  322. return this.columnЦена;
  323. }
  324. }
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. [global::System.ComponentModel.Browsable(false)]
  328. public int Count {
  329. get {
  330. return this.Rows.Count;
  331. }
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. public product_b_import1Row this[int index] {
  336. get {
  337. return ((product_b_import1Row)(this.Rows[index]));
  338. }
  339. }
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. public event product_b_import1RowChangeEventHandler product_b_import1RowChanging;
  342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  343. public event product_b_import1RowChangeEventHandler product_b_import1RowChanged;
  344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  345. public event product_b_import1RowChangeEventHandler product_b_import1RowDeleting;
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  347. public event product_b_import1RowChangeEventHandler product_b_import1RowDeleted;
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  350. public void Addproduct_b_import1Row(product_b_import1Row row) {
  351. this.Rows.Add(row);
  352. }
  353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  355. public product_b_import1Row Addproduct_b_import1Row(string Наименование_товара, string Главное_изображение, string Производитель, string Активен, string Цена) {
  356. product_b_import1Row rowproduct_b_import1Row = ((product_b_import1Row)(this.NewRow()));
  357. object[] columnValuesArray = new object[] {
  358. Наименование_товара,
  359. Главное_изображение,
  360. Производитель,
  361. Активен,
  362. Цена};
  363. rowproduct_b_import1Row.ItemArray = columnValuesArray;
  364. this.Rows.Add(rowproduct_b_import1Row);
  365. return rowproduct_b_import1Row;
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  369. public product_b_import1Row FindByНаименование_товара(string Наименование_товара) {
  370. return ((product_b_import1Row)(this.Rows.Find(new object[] {
  371. Наименование_товара})));
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. public override global::System.Data.DataTable Clone() {
  376. product_b_import1DataTable cln = ((product_b_import1DataTable)(base.Clone()));
  377. cln.InitVars();
  378. return cln;
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  382. protected override global::System.Data.DataTable CreateInstance() {
  383. return new product_b_import1DataTable();
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  387. internal void InitVars() {
  388. this.columnНаименование_товара = base.Columns["Наименование_товара"];
  389. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  390. this.columnПроизводитель = base.Columns["Производитель"];
  391. this.columnАктивен = base.Columns["Активен"];
  392. this.columnЦена = base.Columns["Цена"];
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. private void InitClass() {
  397. this.columnНаименование_товара = new global::System.Data.DataColumn("Наименование_товара", typeof(string), null, global::System.Data.MappingType.Element);
  398. base.Columns.Add(this.columnНаименование_товара);
  399. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  400. base.Columns.Add(this.columnГлавное_изображение);
  401. this.columnПроизводитель = new global::System.Data.DataColumn("Производитель", typeof(string), null, global::System.Data.MappingType.Element);
  402. base.Columns.Add(this.columnПроизводитель);
  403. this.columnАктивен = new global::System.Data.DataColumn("Активен", typeof(string), null, global::System.Data.MappingType.Element);
  404. base.Columns.Add(this.columnАктивен);
  405. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
  406. base.Columns.Add(this.columnЦена);
  407. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  408. this.columnНаименование_товара}, true));
  409. this.columnНаименование_товара.AllowDBNull = false;
  410. this.columnНаименование_товара.Unique = true;
  411. this.columnНаименование_товара.MaxLength = 100;
  412. this.columnГлавное_изображение.MaxLength = 50;
  413. this.columnПроизводитель.MaxLength = 50;
  414. this.columnАктивен.MaxLength = 50;
  415. this.columnЦена.MaxLength = 50;
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  419. public product_b_import1Row Newproduct_b_import1Row() {
  420. return ((product_b_import1Row)(this.NewRow()));
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  425. return new product_b_import1Row(builder);
  426. }
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. protected override global::System.Type GetRowType() {
  430. return typeof(product_b_import1Row);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  435. base.OnRowChanged(e);
  436. if ((this.product_b_import1RowChanged != null)) {
  437. this.product_b_import1RowChanged(this, new product_b_import1RowChangeEvent(((product_b_import1Row)(e.Row)), e.Action));
  438. }
  439. }
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  442. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  443. base.OnRowChanging(e);
  444. if ((this.product_b_import1RowChanging != null)) {
  445. this.product_b_import1RowChanging(this, new product_b_import1RowChangeEvent(((product_b_import1Row)(e.Row)), e.Action));
  446. }
  447. }
  448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  450. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  451. base.OnRowDeleted(e);
  452. if ((this.product_b_import1RowDeleted != null)) {
  453. this.product_b_import1RowDeleted(this, new product_b_import1RowChangeEvent(((product_b_import1Row)(e.Row)), e.Action));
  454. }
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  459. base.OnRowDeleting(e);
  460. if ((this.product_b_import1RowDeleting != null)) {
  461. this.product_b_import1RowDeleting(this, new product_b_import1RowChangeEvent(((product_b_import1Row)(e.Row)), e.Action));
  462. }
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. public void Removeproduct_b_import1Row(product_b_import1Row row) {
  467. this.Rows.Remove(row);
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  472. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  473. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  474. PasechnikovRomanYurevich_ISPDataSet ds = new PasechnikovRomanYurevich_ISPDataSet();
  475. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  476. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  477. any1.MinOccurs = new decimal(0);
  478. any1.MaxOccurs = decimal.MaxValue;
  479. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  480. sequence.Items.Add(any1);
  481. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  482. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  483. any2.MinOccurs = new decimal(1);
  484. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  485. sequence.Items.Add(any2);
  486. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  487. attribute1.Name = "namespace";
  488. attribute1.FixedValue = ds.Namespace;
  489. type.Attributes.Add(attribute1);
  490. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  491. attribute2.Name = "tableTypeName";
  492. attribute2.FixedValue = "product_b_import1DataTable";
  493. type.Attributes.Add(attribute2);
  494. type.Particle = sequence;
  495. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  496. if (xs.Contains(dsSchema.TargetNamespace)) {
  497. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  498. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  499. try {
  500. global::System.Xml.Schema.XmlSchema schema = null;
  501. dsSchema.Write(s1);
  502. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  503. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  504. s2.SetLength(0);
  505. schema.Write(s2);
  506. if ((s1.Length == s2.Length)) {
  507. s1.Position = 0;
  508. s2.Position = 0;
  509. for (; ((s1.Position != s1.Length)
  510. && (s1.ReadByte() == s2.ReadByte())); ) {
  511. ;
  512. }
  513. if ((s1.Position == s1.Length)) {
  514. return type;
  515. }
  516. }
  517. }
  518. }
  519. finally {
  520. if ((s1 != null)) {
  521. s1.Close();
  522. }
  523. if ((s2 != null)) {
  524. s2.Close();
  525. }
  526. }
  527. }
  528. xs.Add(dsSchema);
  529. return type;
  530. }
  531. }
  532. /// <summary>
  533. ///Represents strongly named DataRow class.
  534. ///</summary>
  535. public partial class product_b_import1Row : global::System.Data.DataRow {
  536. private product_b_import1DataTable tableproduct_b_import1;
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  539. internal product_b_import1Row(global::System.Data.DataRowBuilder rb) :
  540. base(rb) {
  541. this.tableproduct_b_import1 = ((product_b_import1DataTable)(this.Table));
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  545. public string Наименование_товара {
  546. get {
  547. return ((string)(this[this.tableproduct_b_import1.Наименование_товараColumn]));
  548. }
  549. set {
  550. this[this.tableproduct_b_import1.Наименование_товараColumn] = value;
  551. }
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  555. public string Главное_изображение {
  556. get {
  557. try {
  558. return ((string)(this[this.tableproduct_b_import1.Главное_изображениеColumn]));
  559. }
  560. catch (global::System.InvalidCastException e) {
  561. throw new global::System.Data.StrongTypingException("Значение для столбца \'Главное_изображение\' в таблице \'product_b_import1\' равно DB" +
  562. "Null.", e);
  563. }
  564. }
  565. set {
  566. this[this.tableproduct_b_import1.Главное_изображениеColumn] = value;
  567. }
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. public string Производитель {
  572. get {
  573. try {
  574. return ((string)(this[this.tableproduct_b_import1.ПроизводительColumn]));
  575. }
  576. catch (global::System.InvalidCastException e) {
  577. throw new global::System.Data.StrongTypingException("Значение для столбца \'Производитель\' в таблице \'product_b_import1\' равно DBNull.", e);
  578. }
  579. }
  580. set {
  581. this[this.tableproduct_b_import1.ПроизводительColumn] = value;
  582. }
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public string Активен {
  587. get {
  588. try {
  589. return ((string)(this[this.tableproduct_b_import1.АктивенColumn]));
  590. }
  591. catch (global::System.InvalidCastException e) {
  592. throw new global::System.Data.StrongTypingException("Значение для столбца \'Активен\' в таблице \'product_b_import1\' равно DBNull.", e);
  593. }
  594. }
  595. set {
  596. this[this.tableproduct_b_import1.АктивенColumn] = value;
  597. }
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. public string Цена {
  602. get {
  603. try {
  604. return ((string)(this[this.tableproduct_b_import1.ЦенаColumn]));
  605. }
  606. catch (global::System.InvalidCastException e) {
  607. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'product_b_import1\' равно DBNull.", e);
  608. }
  609. }
  610. set {
  611. this[this.tableproduct_b_import1.ЦенаColumn] = value;
  612. }
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. public bool IsГлавное_изображениеNull() {
  617. return this.IsNull(this.tableproduct_b_import1.Главное_изображениеColumn);
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. public void SetГлавное_изображениеNull() {
  622. this[this.tableproduct_b_import1.Главное_изображениеColumn] = global::System.Convert.DBNull;
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  626. public bool IsПроизводительNull() {
  627. return this.IsNull(this.tableproduct_b_import1.ПроизводительColumn);
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  631. public void SetПроизводительNull() {
  632. this[this.tableproduct_b_import1.ПроизводительColumn] = global::System.Convert.DBNull;
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public bool IsАктивенNull() {
  637. return this.IsNull(this.tableproduct_b_import1.АктивенColumn);
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. public void SetАктивенNull() {
  642. this[this.tableproduct_b_import1.АктивенColumn] = global::System.Convert.DBNull;
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. public bool IsЦенаNull() {
  647. return this.IsNull(this.tableproduct_b_import1.ЦенаColumn);
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public void SetЦенаNull() {
  652. this[this.tableproduct_b_import1.ЦенаColumn] = global::System.Convert.DBNull;
  653. }
  654. }
  655. /// <summary>
  656. ///Row event argument class
  657. ///</summary>
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public class product_b_import1RowChangeEvent : global::System.EventArgs {
  660. private product_b_import1Row eventRow;
  661. private global::System.Data.DataRowAction eventAction;
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public product_b_import1RowChangeEvent(product_b_import1Row row, global::System.Data.DataRowAction action) {
  665. this.eventRow = row;
  666. this.eventAction = action;
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public product_b_import1Row Row {
  671. get {
  672. return this.eventRow;
  673. }
  674. }
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  677. public global::System.Data.DataRowAction Action {
  678. get {
  679. return this.eventAction;
  680. }
  681. }
  682. }
  683. }
  684. }
  685. namespace PasechnikovRomanYurevch_ISP.PasechnikovRomanYurevich_ISPDataSetTableAdapters {
  686. /// <summary>
  687. ///Represents the connection and commands used to retrieve and save data.
  688. ///</summary>
  689. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  690. [global::System.ComponentModel.ToolboxItem(true)]
  691. [global::System.ComponentModel.DataObjectAttribute(true)]
  692. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  693. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  695. public partial class product_b_import1TableAdapter : global::System.ComponentModel.Component {
  696. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  697. private global::System.Data.SqlClient.SqlConnection _connection;
  698. private global::System.Data.SqlClient.SqlTransaction _transaction;
  699. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  700. private bool _clearBeforeFill;
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public product_b_import1TableAdapter() {
  704. this.ClearBeforeFill = true;
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  709. get {
  710. if ((this._adapter == null)) {
  711. this.InitAdapter();
  712. }
  713. return this._adapter;
  714. }
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. internal global::System.Data.SqlClient.SqlConnection Connection {
  719. get {
  720. if ((this._connection == null)) {
  721. this.InitConnection();
  722. }
  723. return this._connection;
  724. }
  725. set {
  726. this._connection = value;
  727. if ((this.Adapter.InsertCommand != null)) {
  728. this.Adapter.InsertCommand.Connection = value;
  729. }
  730. if ((this.Adapter.DeleteCommand != null)) {
  731. this.Adapter.DeleteCommand.Connection = value;
  732. }
  733. if ((this.Adapter.UpdateCommand != null)) {
  734. this.Adapter.UpdateCommand.Connection = value;
  735. }
  736. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  737. if ((this.CommandCollection[i] != null)) {
  738. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  739. }
  740. }
  741. }
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  746. get {
  747. return this._transaction;
  748. }
  749. set {
  750. this._transaction = value;
  751. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  752. this.CommandCollection[i].Transaction = this._transaction;
  753. }
  754. if (((this.Adapter != null)
  755. && (this.Adapter.DeleteCommand != null))) {
  756. this.Adapter.DeleteCommand.Transaction = this._transaction;
  757. }
  758. if (((this.Adapter != null)
  759. && (this.Adapter.InsertCommand != null))) {
  760. this.Adapter.InsertCommand.Transaction = this._transaction;
  761. }
  762. if (((this.Adapter != null)
  763. && (this.Adapter.UpdateCommand != null))) {
  764. this.Adapter.UpdateCommand.Transaction = this._transaction;
  765. }
  766. }
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  770. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  771. get {
  772. if ((this._commandCollection == null)) {
  773. this.InitCommandCollection();
  774. }
  775. return this._commandCollection;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public bool ClearBeforeFill {
  781. get {
  782. return this._clearBeforeFill;
  783. }
  784. set {
  785. this._clearBeforeFill = value;
  786. }
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. private void InitAdapter() {
  791. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  792. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  793. tableMapping.SourceTable = "Table";
  794. tableMapping.DataSetTable = "product_b_import1";
  795. tableMapping.ColumnMappings.Add("Наименование_товара", "Наименование_товара");
  796. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  797. tableMapping.ColumnMappings.Add("Производитель", "Производитель");
  798. tableMapping.ColumnMappings.Add("Активен", "Активен");
  799. tableMapping.ColumnMappings.Add("Цена", "Цена");
  800. this._adapter.TableMappings.Add(tableMapping);
  801. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  802. this._adapter.DeleteCommand.Connection = this.Connection;
  803. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[product_b_import1] WHERE (([Наименование_товара] = @Original_Наименование_товара) AND ((@IsNull_Главное_изображение = 1 AND [Главное_изображение] IS NULL) OR ([Главное_изображение] = @Original_Главное_изображение)) AND ((@IsNull_Производитель = 1 AND [Производитель] IS NULL) OR ([Производитель] = @Original_Производитель)) AND ((@IsNull_Активен = 1 AND [Активен] IS NULL) OR ([Активен] = @Original_Активен)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)))";
  804. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  805. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  806. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Главное_изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  807. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  808. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  809. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  810. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Активен", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  811. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  812. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  813. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  814. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  815. this._adapter.InsertCommand.Connection = this.Connection;
  816. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[product_b_import1] ([Наименование_товара], [Главное_изображение], [Производитель], [Активен], [Цена]) VALUES (@Наименование_товара, @Главное_изображение, @Производитель, @Активен, @Цена);
  817. SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FROM product_b_import1 WHERE (Наименование_товара = @Наименование_товара)";
  818. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  819. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  820. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  821. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  822. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  823. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  824. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  825. this._adapter.UpdateCommand.Connection = this.Connection;
  826. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[product_b_import1] SET [Наименование_товара] = @Наименование_товара, [Главное_изображение] = @Главное_изображение, [Производитель] = @Производитель, [Активен] = @Активен, [Цена] = @Цена WHERE (([Наименование_товара] = @Original_Наименование_товара) AND ((@IsNull_Главное_изображение = 1 AND [Главное_изображение] IS NULL) OR ([Главное_изображение] = @Original_Главное_изображение)) AND ((@IsNull_Производитель = 1 AND [Производитель] IS NULL) OR ([Производитель] = @Original_Производитель)) AND ((@IsNull_Активен = 1 AND [Активен] IS NULL) OR ([Активен] = @Original_Активен)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)));
  827. SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FROM product_b_import1 WHERE (Наименование_товара = @Наименование_товара)";
  828. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  831. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  832. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  835. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Главное_изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  836. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  837. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  838. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Активен", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. private void InitConnection() {
  847. this._connection = new global::System.Data.SqlClient.SqlConnection();
  848. this._connection.ConnectionString = global::PasechnikovRomanYurevch_ISP.Properties.Settings.Default.PasechnikovRomanYurevich_ISPConnectionString;
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  852. private void InitCommandCollection() {
  853. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  854. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  855. this._commandCollection[0].Connection = this.Connection;
  856. this._commandCollection[0].CommandText = "SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FRO" +
  857. "M dbo.product_b_import1";
  858. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  863. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  864. public virtual int Fill(PasechnikovRomanYurevich_ISPDataSet.product_b_import1DataTable dataTable) {
  865. this.Adapter.SelectCommand = this.CommandCollection[0];
  866. if ((this.ClearBeforeFill == true)) {
  867. dataTable.Clear();
  868. }
  869. int returnValue = this.Adapter.Fill(dataTable);
  870. return returnValue;
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  875. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  876. public virtual PasechnikovRomanYurevich_ISPDataSet.product_b_import1DataTable GetData() {
  877. this.Adapter.SelectCommand = this.CommandCollection[0];
  878. PasechnikovRomanYurevich_ISPDataSet.product_b_import1DataTable dataTable = new PasechnikovRomanYurevich_ISPDataSet.product_b_import1DataTable();
  879. this.Adapter.Fill(dataTable);
  880. return dataTable;
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  885. public virtual int Update(PasechnikovRomanYurevich_ISPDataSet.product_b_import1DataTable dataTable) {
  886. return this.Adapter.Update(dataTable);
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  891. public virtual int Update(PasechnikovRomanYurevich_ISPDataSet dataSet) {
  892. return this.Adapter.Update(dataSet, "product_b_import1");
  893. }
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  897. public virtual int Update(global::System.Data.DataRow dataRow) {
  898. return this.Adapter.Update(new global::System.Data.DataRow[] {
  899. dataRow});
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  904. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  905. return this.Adapter.Update(dataRows);
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  911. public virtual int Delete(string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  912. if ((Original_Наименование_товара == null)) {
  913. throw new global::System.ArgumentNullException("Original_Наименование_товара");
  914. }
  915. else {
  916. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Наименование_товара));
  917. }
  918. if ((Original_Главное_изображение == null)) {
  919. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  920. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  921. }
  922. else {
  923. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  924. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Главное_изображение));
  925. }
  926. if ((Original_Производитель == null)) {
  927. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  928. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  929. }
  930. else {
  931. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  932. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Производитель));
  933. }
  934. if ((Original_Активен == null)) {
  935. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  936. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  937. }
  938. else {
  939. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  940. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Активен));
  941. }
  942. if ((Original_Цена == null)) {
  943. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  944. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  945. }
  946. else {
  947. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  948. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Цена));
  949. }
  950. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  951. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  952. != global::System.Data.ConnectionState.Open)) {
  953. this.Adapter.DeleteCommand.Connection.Open();
  954. }
  955. try {
  956. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  957. return returnValue;
  958. }
  959. finally {
  960. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  961. this.Adapter.DeleteCommand.Connection.Close();
  962. }
  963. }
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  969. public virtual int Insert(string Наименование_товара, string Главное_изображение, string Производитель, string Активен, string Цена) {
  970. if ((Наименование_товара == null)) {
  971. throw new global::System.ArgumentNullException("Наименование_товара");
  972. }
  973. else {
  974. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_товара));
  975. }
  976. if ((Главное_изображение == null)) {
  977. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  978. }
  979. else {
  980. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  981. }
  982. if ((Производитель == null)) {
  983. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  984. }
  985. else {
  986. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Производитель));
  987. }
  988. if ((Активен == null)) {
  989. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  990. }
  991. else {
  992. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Активен));
  993. }
  994. if ((Цена == null)) {
  995. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  996. }
  997. else {
  998. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Цена));
  999. }
  1000. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1001. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1002. != global::System.Data.ConnectionState.Open)) {
  1003. this.Adapter.InsertCommand.Connection.Open();
  1004. }
  1005. try {
  1006. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1007. return returnValue;
  1008. }
  1009. finally {
  1010. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1011. this.Adapter.InsertCommand.Connection.Close();
  1012. }
  1013. }
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1018. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1019. public virtual int Update(string Наименование_товара, string Главное_изображение, string Производитель, string Активен, string Цена, string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  1020. if ((Наименование_товара == null)) {
  1021. throw new global::System.ArgumentNullException("Наименование_товара");
  1022. }
  1023. else {
  1024. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_товара));
  1025. }
  1026. if ((Главное_изображение == null)) {
  1027. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  1028. }
  1029. else {
  1030. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  1031. }
  1032. if ((Производитель == null)) {
  1033. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  1034. }
  1035. else {
  1036. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Производитель));
  1037. }
  1038. if ((Активен == null)) {
  1039. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  1040. }
  1041. else {
  1042. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Активен));
  1043. }
  1044. if ((Цена == null)) {
  1045. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  1046. }
  1047. else {
  1048. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Цена));
  1049. }
  1050. if ((Original_Наименование_товара == null)) {
  1051. throw new global::System.ArgumentNullException("Original_Наименование_товара");
  1052. }
  1053. else {
  1054. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование_товара));
  1055. }
  1056. if ((Original_Главное_изображение == null)) {
  1057. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  1058. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  1059. }
  1060. else {
  1061. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  1062. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Главное_изображение));
  1063. }
  1064. if ((Original_Производитель == null)) {
  1065. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  1066. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  1067. }
  1068. else {
  1069. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  1070. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Производитель));
  1071. }
  1072. if ((Original_Активен == null)) {
  1073. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  1074. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  1075. }
  1076. else {
  1077. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  1078. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Активен));
  1079. }
  1080. if ((Original_Цена == null)) {
  1081. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  1082. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  1083. }
  1084. else {
  1085. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  1086. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Цена));
  1087. }
  1088. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1089. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1090. != global::System.Data.ConnectionState.Open)) {
  1091. this.Adapter.UpdateCommand.Connection.Open();
  1092. }
  1093. try {
  1094. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1095. return returnValue;
  1096. }
  1097. finally {
  1098. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1099. this.Adapter.UpdateCommand.Connection.Close();
  1100. }
  1101. }
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1106. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1107. public virtual int Update(string Главное_изображение, string Производитель, string Активен, string Цена, string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  1108. return this.Update(Original_Наименование_товара, Главное_изображение, Производитель, Активен, Цена, Original_Наименование_товара, Original_Главное_изображение, Original_Производитель, Original_Активен, Original_Цена);
  1109. }
  1110. }
  1111. /// <summary>
  1112. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  1113. ///</summary>
  1114. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1115. [global::System.ComponentModel.ToolboxItem(true)]
  1116. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  1117. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  1119. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  1120. private UpdateOrderOption _updateOrder;
  1121. private product_b_import1TableAdapter _product_b_import1TableAdapter;
  1122. private bool _backupDataSetBeforeUpdate;
  1123. private global::System.Data.IDbConnection _connection;
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1126. public UpdateOrderOption UpdateOrder {
  1127. get {
  1128. return this._updateOrder;
  1129. }
  1130. set {
  1131. this._updateOrder = value;
  1132. }
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1136. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1137. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1138. "a", "System.Drawing.Design.UITypeEditor")]
  1139. public product_b_import1TableAdapter product_b_import1TableAdapter {
  1140. get {
  1141. return this._product_b_import1TableAdapter;
  1142. }
  1143. set {
  1144. this._product_b_import1TableAdapter = value;
  1145. }
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. public bool BackupDataSetBeforeUpdate {
  1150. get {
  1151. return this._backupDataSetBeforeUpdate;
  1152. }
  1153. set {
  1154. this._backupDataSetBeforeUpdate = value;
  1155. }
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. [global::System.ComponentModel.Browsable(false)]
  1160. public global::System.Data.IDbConnection Connection {
  1161. get {
  1162. if ((this._connection != null)) {
  1163. return this._connection;
  1164. }
  1165. if (((this._product_b_import1TableAdapter != null)
  1166. && (this._product_b_import1TableAdapter.Connection != null))) {
  1167. return this._product_b_import1TableAdapter.Connection;
  1168. }
  1169. return null;
  1170. }
  1171. set {
  1172. this._connection = value;
  1173. }
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. [global::System.ComponentModel.Browsable(false)]
  1178. public int TableAdapterInstanceCount {
  1179. get {
  1180. int count = 0;
  1181. if ((this._product_b_import1TableAdapter != null)) {
  1182. count = (count + 1);
  1183. }
  1184. return count;
  1185. }
  1186. }
  1187. /// <summary>
  1188. ///Update rows in top-down order.
  1189. ///</summary>
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1192. private int UpdateUpdatedRows(PasechnikovRomanYurevich_ISPDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1193. int result = 0;
  1194. if ((this._product_b_import1TableAdapter != null)) {
  1195. global::System.Data.DataRow[] updatedRows = dataSet.product_b_import1.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  1196. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  1197. if (((updatedRows != null)
  1198. && (0 < updatedRows.Length))) {
  1199. result = (result + this._product_b_import1TableAdapter.Update(updatedRows));
  1200. allChangedRows.AddRange(updatedRows);
  1201. }
  1202. }
  1203. return result;
  1204. }
  1205. /// <summary>
  1206. ///Insert rows in top-down order.
  1207. ///</summary>
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. private int UpdateInsertedRows(PasechnikovRomanYurevich_ISPDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1211. int result = 0;
  1212. if ((this._product_b_import1TableAdapter != null)) {
  1213. global::System.Data.DataRow[] addedRows = dataSet.product_b_import1.Select(null, null, global::System.Data.DataViewRowState.Added);
  1214. if (((addedRows != null)
  1215. && (0 < addedRows.Length))) {
  1216. result = (result + this._product_b_import1TableAdapter.Update(addedRows));
  1217. allAddedRows.AddRange(addedRows);
  1218. }
  1219. }
  1220. return result;
  1221. }
  1222. /// <summary>
  1223. ///Delete rows in bottom-up order.
  1224. ///</summary>
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. private int UpdateDeletedRows(PasechnikovRomanYurevich_ISPDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  1228. int result = 0;
  1229. if ((this._product_b_import1TableAdapter != null)) {
  1230. global::System.Data.DataRow[] deletedRows = dataSet.product_b_import1.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  1231. if (((deletedRows != null)
  1232. && (0 < deletedRows.Length))) {
  1233. result = (result + this._product_b_import1TableAdapter.Update(deletedRows));
  1234. allChangedRows.AddRange(deletedRows);
  1235. }
  1236. }
  1237. return result;
  1238. }
  1239. /// <summary>
  1240. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  1241. ///</summary>
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1245. if (((updatedRows == null)
  1246. || (updatedRows.Length < 1))) {
  1247. return updatedRows;
  1248. }
  1249. if (((allAddedRows == null)
  1250. || (allAddedRows.Count < 1))) {
  1251. return updatedRows;
  1252. }
  1253. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1254. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  1255. global::System.Data.DataRow row = updatedRows[i];
  1256. if ((allAddedRows.Contains(row) == false)) {
  1257. realUpdatedRows.Add(row);
  1258. }
  1259. }
  1260. return realUpdatedRows.ToArray();
  1261. }
  1262. /// <summary>
  1263. ///Update all changes to the dataset.
  1264. ///</summary>
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. public virtual int UpdateAll(PasechnikovRomanYurevich_ISPDataSet dataSet) {
  1268. if ((dataSet == null)) {
  1269. throw new global::System.ArgumentNullException("dataSet");
  1270. }
  1271. if ((dataSet.HasChanges() == false)) {
  1272. return 0;
  1273. }
  1274. if (((this._product_b_import1TableAdapter != null)
  1275. && (this.MatchTableAdapterConnection(this._product_b_import1TableAdapter.Connection) == false))) {
  1276. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1277. "r, должны использовать одинаковую строку подключения.");
  1278. }
  1279. global::System.Data.IDbConnection workConnection = this.Connection;
  1280. if ((workConnection == null)) {
  1281. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1282. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1283. }
  1284. bool workConnOpened = false;
  1285. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1286. == global::System.Data.ConnectionState.Broken)) {
  1287. workConnection.Close();
  1288. }
  1289. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1290. workConnection.Open();
  1291. workConnOpened = true;
  1292. }
  1293. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1294. if ((workTransaction == null)) {
  1295. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1296. "и или текущее состояние не позволяет начать транзакцию.");
  1297. }
  1298. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1299. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1300. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1301. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1302. int result = 0;
  1303. global::System.Data.DataSet backupDataSet = null;
  1304. if (this.BackupDataSetBeforeUpdate) {
  1305. backupDataSet = new global::System.Data.DataSet();
  1306. backupDataSet.Merge(dataSet);
  1307. }
  1308. try {
  1309. // ---- Prepare for update -----------
  1310. //
  1311. if ((this._product_b_import1TableAdapter != null)) {
  1312. revertConnections.Add(this._product_b_import1TableAdapter, this._product_b_import1TableAdapter.Connection);
  1313. this._product_b_import1TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1314. this._product_b_import1TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1315. if (this._product_b_import1TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1316. this._product_b_import1TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1317. adaptersWithAcceptChangesDuringUpdate.Add(this._product_b_import1TableAdapter.Adapter);
  1318. }
  1319. }
  1320. //
  1321. //---- Perform updates -----------
  1322. //
  1323. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1324. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1325. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1326. }
  1327. else {
  1328. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1329. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1330. }
  1331. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1332. //
  1333. //---- Commit updates -----------
  1334. //
  1335. workTransaction.Commit();
  1336. if ((0 < allAddedRows.Count)) {
  1337. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1338. allAddedRows.CopyTo(rows);
  1339. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1340. global::System.Data.DataRow row = rows[i];
  1341. row.AcceptChanges();
  1342. }
  1343. }
  1344. if ((0 < allChangedRows.Count)) {
  1345. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1346. allChangedRows.CopyTo(rows);
  1347. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1348. global::System.Data.DataRow row = rows[i];
  1349. row.AcceptChanges();
  1350. }
  1351. }
  1352. }
  1353. catch (global::System.Exception ex) {
  1354. workTransaction.Rollback();
  1355. // ---- Restore the dataset -----------
  1356. if (this.BackupDataSetBeforeUpdate) {
  1357. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1358. dataSet.Clear();
  1359. dataSet.Merge(backupDataSet);
  1360. }
  1361. else {
  1362. if ((0 < allAddedRows.Count)) {
  1363. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1364. allAddedRows.CopyTo(rows);
  1365. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1366. global::System.Data.DataRow row = rows[i];
  1367. row.AcceptChanges();
  1368. row.SetAdded();
  1369. }
  1370. }
  1371. }
  1372. throw ex;
  1373. }
  1374. finally {
  1375. if (workConnOpened) {
  1376. workConnection.Close();
  1377. }
  1378. if ((this._product_b_import1TableAdapter != null)) {
  1379. this._product_b_import1TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._product_b_import1TableAdapter]));
  1380. this._product_b_import1TableAdapter.Transaction = null;
  1381. }
  1382. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1383. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1384. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1385. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1386. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1387. adapter.AcceptChangesDuringUpdate = true;
  1388. }
  1389. }
  1390. }
  1391. return result;
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1396. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1397. }
  1398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1400. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1401. if ((this._connection != null)) {
  1402. return true;
  1403. }
  1404. if (((this.Connection == null)
  1405. || (inputConnection == null))) {
  1406. return true;
  1407. }
  1408. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1409. return true;
  1410. }
  1411. return false;
  1412. }
  1413. /// <summary>
  1414. ///Update Order Option
  1415. ///</summary>
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1417. public enum UpdateOrderOption {
  1418. InsertUpdateDelete = 0,
  1419. UpdateInsertDelete = 1,
  1420. }
  1421. /// <summary>
  1422. ///Used to sort self-referenced table's rows
  1423. ///</summary>
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1426. private global::System.Data.DataRelation _relation;
  1427. private int _childFirst;
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1430. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1431. this._relation = relation;
  1432. if (childFirst) {
  1433. this._childFirst = -1;
  1434. }
  1435. else {
  1436. this._childFirst = 1;
  1437. }
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1442. global::System.Diagnostics.Debug.Assert((row != null));
  1443. global::System.Data.DataRow root = row;
  1444. distance = 0;
  1445. 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>();
  1446. traversedRows[row] = row;
  1447. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1448. for (
  1449. ; ((parent != null)
  1450. && (traversedRows.ContainsKey(parent) == false));
  1451. ) {
  1452. distance = (distance + 1);
  1453. root = parent;
  1454. traversedRows[parent] = parent;
  1455. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1456. }
  1457. if ((distance == 0)) {
  1458. traversedRows.Clear();
  1459. traversedRows[row] = row;
  1460. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1461. for (
  1462. ; ((parent != null)
  1463. && (traversedRows.ContainsKey(parent) == false));
  1464. ) {
  1465. distance = (distance + 1);
  1466. root = parent;
  1467. traversedRows[parent] = parent;
  1468. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1469. }
  1470. }
  1471. return root;
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1476. if (object.ReferenceEquals(row1, row2)) {
  1477. return 0;
  1478. }
  1479. if ((row1 == null)) {
  1480. return -1;
  1481. }
  1482. if ((row2 == null)) {
  1483. return 1;
  1484. }
  1485. int distance1 = 0;
  1486. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1487. int distance2 = 0;
  1488. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1489. if (object.ReferenceEquals(root1, root2)) {
  1490. return (this._childFirst * distance1.CompareTo(distance2));
  1491. }
  1492. else {
  1493. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1494. && (root2.Table != null)));
  1495. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1496. return -1;
  1497. }
  1498. else {
  1499. return 1;
  1500. }
  1501. }
  1502. }
  1503. }
  1504. }
  1505. }
  1506. #pragma warning restore 1591