test111DataSet.Designer.cs 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace test111 {
  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("test111DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class test111DataSet : global::System.Data.DataSet {
  22. private _111DataTable table111;
  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 test111DataSet() {
  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 test111DataSet(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["111"] != null)) {
  50. base.Tables.Add(new _111DataTable(ds.Tables["111"]));
  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 _111DataTable _111 {
  74. get {
  75. return this.table111;
  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. test111DataSet cln = ((test111DataSet)(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["111"] != null)) {
  139. base.Tables.Add(new _111DataTable(ds.Tables["111"]));
  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.table111 = ((_111DataTable)(base.Tables["111"]));
  172. if ((initTable == true)) {
  173. if ((this.table111 != null)) {
  174. this.table111.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 = "test111DataSet";
  182. this.Prefix = "";
  183. this.Namespace = "http://tempuri.org/test111DataSet.xsd";
  184. this.EnforceConstraints = true;
  185. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  186. this.table111 = new _111DataTable();
  187. base.Tables.Add(this.table111);
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. private bool ShouldSerialize_111() {
  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. test111DataSet ds = new test111DataSet();
  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 _111RowChangeEventHandler(object sender, _111RowChangeEvent 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 _111DataTable : global::System.Data.TypedTableBase<_111Row> {
  255. private global::System.Data.DataColumn column111ggg;
  256. private global::System.Data.DataColumn column123rfd;
  257. private global::System.Data.DataColumn columnsdgdsg;
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  260. public _111DataTable() {
  261. this.TableName = "111";
  262. this.BeginInit();
  263. this.InitClass();
  264. this.EndInit();
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. internal _111DataTable(global::System.Data.DataTable table) {
  269. this.TableName = table.TableName;
  270. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  271. this.CaseSensitive = table.CaseSensitive;
  272. }
  273. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  274. this.Locale = table.Locale;
  275. }
  276. if ((table.Namespace != table.DataSet.Namespace)) {
  277. this.Namespace = table.Namespace;
  278. }
  279. this.Prefix = table.Prefix;
  280. this.MinimumCapacity = table.MinimumCapacity;
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. protected _111DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  285. base(info, context) {
  286. this.InitVars();
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public global::System.Data.DataColumn _111gggColumn {
  291. get {
  292. return this.column111ggg;
  293. }
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. public global::System.Data.DataColumn _123rfdColumn {
  298. get {
  299. return this.column123rfd;
  300. }
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  304. public global::System.Data.DataColumn sdgdsgColumn {
  305. get {
  306. return this.columnsdgdsg;
  307. }
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. [global::System.ComponentModel.Browsable(false)]
  312. public int Count {
  313. get {
  314. return this.Rows.Count;
  315. }
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. public _111Row this[int index] {
  320. get {
  321. return ((_111Row)(this.Rows[index]));
  322. }
  323. }
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  325. public event _111RowChangeEventHandler _111RowChanging;
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. public event _111RowChangeEventHandler _111RowChanged;
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. public event _111RowChangeEventHandler _111RowDeleting;
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. public event _111RowChangeEventHandler _111RowDeleted;
  332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  334. public void Add_111Row(_111Row row) {
  335. this.Rows.Add(row);
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public _111Row Add_111Row(string _111ggg, string _123rfd, string sdgdsg) {
  340. _111Row row_111Row = ((_111Row)(this.NewRow()));
  341. object[] columnValuesArray = new object[] {
  342. _111ggg,
  343. _123rfd,
  344. sdgdsg};
  345. row_111Row.ItemArray = columnValuesArray;
  346. this.Rows.Add(row_111Row);
  347. return row_111Row;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. public override global::System.Data.DataTable Clone() {
  352. _111DataTable cln = ((_111DataTable)(base.Clone()));
  353. cln.InitVars();
  354. return cln;
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  358. protected override global::System.Data.DataTable CreateInstance() {
  359. return new _111DataTable();
  360. }
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  363. internal void InitVars() {
  364. this.column111ggg = base.Columns["111ggg"];
  365. this.column123rfd = base.Columns["123rfd"];
  366. this.columnsdgdsg = base.Columns["sdgdsg"];
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. private void InitClass() {
  371. this.column111ggg = new global::System.Data.DataColumn("111ggg", typeof(string), null, global::System.Data.MappingType.Element);
  372. this.column111ggg.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "column111ggg");
  373. this.column111ggg.ExtendedProperties.Add("Generator_UserColumnName", "111ggg");
  374. base.Columns.Add(this.column111ggg);
  375. this.column123rfd = new global::System.Data.DataColumn("123rfd", typeof(string), null, global::System.Data.MappingType.Element);
  376. this.column123rfd.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "column123rfd");
  377. this.column123rfd.ExtendedProperties.Add("Generator_UserColumnName", "123rfd");
  378. base.Columns.Add(this.column123rfd);
  379. this.columnsdgdsg = new global::System.Data.DataColumn("sdgdsg", typeof(string), null, global::System.Data.MappingType.Element);
  380. base.Columns.Add(this.columnsdgdsg);
  381. this.column111ggg.MaxLength = 2147483647;
  382. this.column123rfd.AllowDBNull = false;
  383. this.column123rfd.MaxLength = 50;
  384. this.columnsdgdsg.MaxLength = 1073741823;
  385. this.ExtendedProperties.Add("Generator_TableVarName", "table111");
  386. this.ExtendedProperties.Add("Generator_UserTableName", "111");
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. public _111Row New_111Row() {
  391. return ((_111Row)(this.NewRow()));
  392. }
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  395. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  396. return new _111Row(builder);
  397. }
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. protected override global::System.Type GetRowType() {
  401. return typeof(_111Row);
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  406. base.OnRowChanged(e);
  407. if ((this._111RowChanged != null)) {
  408. this._111RowChanged(this, new _111RowChangeEvent(((_111Row)(e.Row)), e.Action));
  409. }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  414. base.OnRowChanging(e);
  415. if ((this._111RowChanging != null)) {
  416. this._111RowChanging(this, new _111RowChangeEvent(((_111Row)(e.Row)), e.Action));
  417. }
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  421. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  422. base.OnRowDeleted(e);
  423. if ((this._111RowDeleted != null)) {
  424. this._111RowDeleted(this, new _111RowChangeEvent(((_111Row)(e.Row)), e.Action));
  425. }
  426. }
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  430. base.OnRowDeleting(e);
  431. if ((this._111RowDeleting != null)) {
  432. this._111RowDeleting(this, new _111RowChangeEvent(((_111Row)(e.Row)), e.Action));
  433. }
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  437. public void Remove_111Row(_111Row row) {
  438. this.Rows.Remove(row);
  439. }
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  442. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  443. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  444. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  445. test111DataSet ds = new test111DataSet();
  446. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  447. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  448. any1.MinOccurs = new decimal(0);
  449. any1.MaxOccurs = decimal.MaxValue;
  450. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  451. sequence.Items.Add(any1);
  452. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  453. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  454. any2.MinOccurs = new decimal(1);
  455. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  456. sequence.Items.Add(any2);
  457. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  458. attribute1.Name = "namespace";
  459. attribute1.FixedValue = ds.Namespace;
  460. type.Attributes.Add(attribute1);
  461. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  462. attribute2.Name = "tableTypeName";
  463. attribute2.FixedValue = "_111DataTable";
  464. type.Attributes.Add(attribute2);
  465. type.Particle = sequence;
  466. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  467. if (xs.Contains(dsSchema.TargetNamespace)) {
  468. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  469. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  470. try {
  471. global::System.Xml.Schema.XmlSchema schema = null;
  472. dsSchema.Write(s1);
  473. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  474. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  475. s2.SetLength(0);
  476. schema.Write(s2);
  477. if ((s1.Length == s2.Length)) {
  478. s1.Position = 0;
  479. s2.Position = 0;
  480. for (; ((s1.Position != s1.Length)
  481. && (s1.ReadByte() == s2.ReadByte())); ) {
  482. ;
  483. }
  484. if ((s1.Position == s1.Length)) {
  485. return type;
  486. }
  487. }
  488. }
  489. }
  490. finally {
  491. if ((s1 != null)) {
  492. s1.Close();
  493. }
  494. if ((s2 != null)) {
  495. s2.Close();
  496. }
  497. }
  498. }
  499. xs.Add(dsSchema);
  500. return type;
  501. }
  502. }
  503. /// <summary>
  504. ///Represents strongly named DataRow class.
  505. ///</summary>
  506. public partial class _111Row : global::System.Data.DataRow {
  507. private _111DataTable table111;
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. internal _111Row(global::System.Data.DataRowBuilder rb) :
  511. base(rb) {
  512. this.table111 = ((_111DataTable)(this.Table));
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. public string _111ggg {
  517. get {
  518. try {
  519. return ((string)(this[this.table111._111gggColumn]));
  520. }
  521. catch (global::System.InvalidCastException e) {
  522. throw new global::System.Data.StrongTypingException("Значение для столбца \'111ggg\' в таблице \'111\' равно DBNull.", e);
  523. }
  524. }
  525. set {
  526. this[this.table111._111gggColumn] = value;
  527. }
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  531. public string _123rfd {
  532. get {
  533. return ((string)(this[this.table111._123rfdColumn]));
  534. }
  535. set {
  536. this[this.table111._123rfdColumn] = value;
  537. }
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  541. public string sdgdsg {
  542. get {
  543. try {
  544. return ((string)(this[this.table111.sdgdsgColumn]));
  545. }
  546. catch (global::System.InvalidCastException e) {
  547. throw new global::System.Data.StrongTypingException("Значение для столбца \'sdgdsg\' в таблице \'111\' равно DBNull.", e);
  548. }
  549. }
  550. set {
  551. this[this.table111.sdgdsgColumn] = value;
  552. }
  553. }
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  556. public bool Is_111gggNull() {
  557. return this.IsNull(this.table111._111gggColumn);
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  561. public void Set_111gggNull() {
  562. this[this.table111._111gggColumn] = global::System.Convert.DBNull;
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. public bool IssdgdsgNull() {
  567. return this.IsNull(this.table111.sdgdsgColumn);
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. public void SetsdgdsgNull() {
  572. this[this.table111.sdgdsgColumn] = global::System.Convert.DBNull;
  573. }
  574. }
  575. /// <summary>
  576. ///Row event argument class
  577. ///</summary>
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. public class _111RowChangeEvent : global::System.EventArgs {
  580. private _111Row eventRow;
  581. private global::System.Data.DataRowAction eventAction;
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. public _111RowChangeEvent(_111Row row, global::System.Data.DataRowAction action) {
  585. this.eventRow = row;
  586. this.eventAction = action;
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. public _111Row Row {
  591. get {
  592. return this.eventRow;
  593. }
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. public global::System.Data.DataRowAction Action {
  598. get {
  599. return this.eventAction;
  600. }
  601. }
  602. }
  603. }
  604. }
  605. namespace test111.test111DataSetTableAdapters {
  606. /// <summary>
  607. ///Represents the connection and commands used to retrieve and save data.
  608. ///</summary>
  609. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  610. [global::System.ComponentModel.ToolboxItem(true)]
  611. [global::System.ComponentModel.DataObjectAttribute(true)]
  612. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  613. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  615. public partial class _111TableAdapter : global::System.ComponentModel.Component {
  616. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  617. private global::System.Data.SqlClient.SqlConnection _connection;
  618. private global::System.Data.SqlClient.SqlTransaction _transaction;
  619. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  620. private bool _clearBeforeFill;
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  623. public _111TableAdapter() {
  624. this.ClearBeforeFill = true;
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  628. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  629. get {
  630. if ((this._adapter == null)) {
  631. this.InitAdapter();
  632. }
  633. return this._adapter;
  634. }
  635. }
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  638. internal global::System.Data.SqlClient.SqlConnection Connection {
  639. get {
  640. if ((this._connection == null)) {
  641. this.InitConnection();
  642. }
  643. return this._connection;
  644. }
  645. set {
  646. this._connection = value;
  647. if ((this.Adapter.InsertCommand != null)) {
  648. this.Adapter.InsertCommand.Connection = value;
  649. }
  650. if ((this.Adapter.DeleteCommand != null)) {
  651. this.Adapter.DeleteCommand.Connection = value;
  652. }
  653. if ((this.Adapter.UpdateCommand != null)) {
  654. this.Adapter.UpdateCommand.Connection = value;
  655. }
  656. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  657. if ((this.CommandCollection[i] != null)) {
  658. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  659. }
  660. }
  661. }
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  665. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  666. get {
  667. return this._transaction;
  668. }
  669. set {
  670. this._transaction = value;
  671. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  672. this.CommandCollection[i].Transaction = this._transaction;
  673. }
  674. if (((this.Adapter != null)
  675. && (this.Adapter.DeleteCommand != null))) {
  676. this.Adapter.DeleteCommand.Transaction = this._transaction;
  677. }
  678. if (((this.Adapter != null)
  679. && (this.Adapter.InsertCommand != null))) {
  680. this.Adapter.InsertCommand.Transaction = this._transaction;
  681. }
  682. if (((this.Adapter != null)
  683. && (this.Adapter.UpdateCommand != null))) {
  684. this.Adapter.UpdateCommand.Transaction = this._transaction;
  685. }
  686. }
  687. }
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  691. get {
  692. if ((this._commandCollection == null)) {
  693. this.InitCommandCollection();
  694. }
  695. return this._commandCollection;
  696. }
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. public bool ClearBeforeFill {
  701. get {
  702. return this._clearBeforeFill;
  703. }
  704. set {
  705. this._clearBeforeFill = value;
  706. }
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. private void InitAdapter() {
  711. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  712. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  713. tableMapping.SourceTable = "Table";
  714. tableMapping.DataSetTable = "111";
  715. tableMapping.ColumnMappings.Add("111ggg", "111ggg");
  716. tableMapping.ColumnMappings.Add("123rfd", "123rfd");
  717. tableMapping.ColumnMappings.Add("sdgdsg", "sdgdsg");
  718. this._adapter.TableMappings.Add(tableMapping);
  719. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  720. this._adapter.InsertCommand.Connection = this.Connection;
  721. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[111] ([111ggg], [123rfd], [sdgdsg]) VALUES (@p1, @p4, @sdgdsg)" +
  722. "";
  723. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  724. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "111ggg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  725. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "123rfd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  726. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdgdsg", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdgdsg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. private void InitConnection() {
  731. this._connection = new global::System.Data.SqlClient.SqlConnection();
  732. this._connection.ConnectionString = global::test111.Properties.Settings.Default.test111ConnectionString;
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. private void InitCommandCollection() {
  737. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  738. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  739. this._commandCollection[0].Connection = this.Connection;
  740. this._commandCollection[0].CommandText = "SELECT [111ggg], [123rfd], sdgdsg FROM dbo.[111]";
  741. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  746. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  747. public virtual int Fill(test111DataSet._111DataTable dataTable) {
  748. this.Adapter.SelectCommand = this.CommandCollection[0];
  749. if ((this.ClearBeforeFill == true)) {
  750. dataTable.Clear();
  751. }
  752. int returnValue = this.Adapter.Fill(dataTable);
  753. return returnValue;
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  758. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  759. public virtual test111DataSet._111DataTable GetData() {
  760. this.Adapter.SelectCommand = this.CommandCollection[0];
  761. test111DataSet._111DataTable dataTable = new test111DataSet._111DataTable();
  762. this.Adapter.Fill(dataTable);
  763. return dataTable;
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  768. public virtual int Update(test111DataSet._111DataTable dataTable) {
  769. return this.Adapter.Update(dataTable);
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  774. public virtual int Update(test111DataSet dataSet) {
  775. return this.Adapter.Update(dataSet, "111");
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  780. public virtual int Update(global::System.Data.DataRow dataRow) {
  781. return this.Adapter.Update(new global::System.Data.DataRow[] {
  782. dataRow});
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  787. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  788. return this.Adapter.Update(dataRows);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  793. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  794. public virtual int Insert(string p1, string p4, string sdgdsg) {
  795. if ((p1 == null)) {
  796. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  797. }
  798. else {
  799. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(p1));
  800. }
  801. if ((p4 == null)) {
  802. throw new global::System.ArgumentNullException("p4");
  803. }
  804. else {
  805. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(p4));
  806. }
  807. if ((sdgdsg == null)) {
  808. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  809. }
  810. else {
  811. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(sdgdsg));
  812. }
  813. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  814. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  815. != global::System.Data.ConnectionState.Open)) {
  816. this.Adapter.InsertCommand.Connection.Open();
  817. }
  818. try {
  819. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  820. return returnValue;
  821. }
  822. finally {
  823. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  824. this.Adapter.InsertCommand.Connection.Close();
  825. }
  826. }
  827. }
  828. }
  829. /// <summary>
  830. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  831. ///</summary>
  832. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  833. [global::System.ComponentModel.ToolboxItem(true)]
  834. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  835. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  837. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  838. private UpdateOrderOption _updateOrder;
  839. private _111TableAdapter @__111TableAdapter;
  840. private bool _backupDataSetBeforeUpdate;
  841. private global::System.Data.IDbConnection _connection;
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. public UpdateOrderOption UpdateOrder {
  845. get {
  846. return this._updateOrder;
  847. }
  848. set {
  849. this._updateOrder = value;
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  855. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  856. "a", "System.Drawing.Design.UITypeEditor")]
  857. public _111TableAdapter _111TableAdapter {
  858. get {
  859. return this.@__111TableAdapter;
  860. }
  861. set {
  862. this.@__111TableAdapter = value;
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public bool BackupDataSetBeforeUpdate {
  868. get {
  869. return this._backupDataSetBeforeUpdate;
  870. }
  871. set {
  872. this._backupDataSetBeforeUpdate = value;
  873. }
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  877. [global::System.ComponentModel.Browsable(false)]
  878. public global::System.Data.IDbConnection Connection {
  879. get {
  880. if ((this._connection != null)) {
  881. return this._connection;
  882. }
  883. if (((this.@__111TableAdapter != null)
  884. && (this.@__111TableAdapter.Connection != null))) {
  885. return this.@__111TableAdapter.Connection;
  886. }
  887. return null;
  888. }
  889. set {
  890. this._connection = value;
  891. }
  892. }
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. [global::System.ComponentModel.Browsable(false)]
  896. public int TableAdapterInstanceCount {
  897. get {
  898. int count = 0;
  899. if ((this.@__111TableAdapter != null)) {
  900. count = (count + 1);
  901. }
  902. return count;
  903. }
  904. }
  905. /// <summary>
  906. ///Update rows in top-down order.
  907. ///</summary>
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. private int UpdateUpdatedRows(test111DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  911. int result = 0;
  912. if ((this.@__111TableAdapter != null)) {
  913. global::System.Data.DataRow[] updatedRows = dataSet._111.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  914. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  915. if (((updatedRows != null)
  916. && (0 < updatedRows.Length))) {
  917. result = (result + this.@__111TableAdapter.Update(updatedRows));
  918. allChangedRows.AddRange(updatedRows);
  919. }
  920. }
  921. return result;
  922. }
  923. /// <summary>
  924. ///Insert rows in top-down order.
  925. ///</summary>
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. private int UpdateInsertedRows(test111DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  929. int result = 0;
  930. if ((this.@__111TableAdapter != null)) {
  931. global::System.Data.DataRow[] addedRows = dataSet._111.Select(null, null, global::System.Data.DataViewRowState.Added);
  932. if (((addedRows != null)
  933. && (0 < addedRows.Length))) {
  934. result = (result + this.@__111TableAdapter.Update(addedRows));
  935. allAddedRows.AddRange(addedRows);
  936. }
  937. }
  938. return result;
  939. }
  940. /// <summary>
  941. ///Delete rows in bottom-up order.
  942. ///</summary>
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  945. private int UpdateDeletedRows(test111DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  946. int result = 0;
  947. if ((this.@__111TableAdapter != null)) {
  948. global::System.Data.DataRow[] deletedRows = dataSet._111.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  949. if (((deletedRows != null)
  950. && (0 < deletedRows.Length))) {
  951. result = (result + this.@__111TableAdapter.Update(deletedRows));
  952. allChangedRows.AddRange(deletedRows);
  953. }
  954. }
  955. return result;
  956. }
  957. /// <summary>
  958. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  959. ///</summary>
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  963. if (((updatedRows == null)
  964. || (updatedRows.Length < 1))) {
  965. return updatedRows;
  966. }
  967. if (((allAddedRows == null)
  968. || (allAddedRows.Count < 1))) {
  969. return updatedRows;
  970. }
  971. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  972. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  973. global::System.Data.DataRow row = updatedRows[i];
  974. if ((allAddedRows.Contains(row) == false)) {
  975. realUpdatedRows.Add(row);
  976. }
  977. }
  978. return realUpdatedRows.ToArray();
  979. }
  980. /// <summary>
  981. ///Update all changes to the dataset.
  982. ///</summary>
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. public virtual int UpdateAll(test111DataSet dataSet) {
  986. if ((dataSet == null)) {
  987. throw new global::System.ArgumentNullException("dataSet");
  988. }
  989. if ((dataSet.HasChanges() == false)) {
  990. return 0;
  991. }
  992. if (((this.@__111TableAdapter != null)
  993. && (this.MatchTableAdapterConnection(this.@__111TableAdapter.Connection) == false))) {
  994. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  995. "r, должны использовать одинаковую строку подключения.");
  996. }
  997. global::System.Data.IDbConnection workConnection = this.Connection;
  998. if ((workConnection == null)) {
  999. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1000. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1001. }
  1002. bool workConnOpened = false;
  1003. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1004. == global::System.Data.ConnectionState.Broken)) {
  1005. workConnection.Close();
  1006. }
  1007. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1008. workConnection.Open();
  1009. workConnOpened = true;
  1010. }
  1011. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1012. if ((workTransaction == null)) {
  1013. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1014. "и или текущее состояние не позволяет начать транзакцию.");
  1015. }
  1016. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1017. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1018. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1019. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1020. int result = 0;
  1021. global::System.Data.DataSet backupDataSet = null;
  1022. if (this.BackupDataSetBeforeUpdate) {
  1023. backupDataSet = new global::System.Data.DataSet();
  1024. backupDataSet.Merge(dataSet);
  1025. }
  1026. try {
  1027. // ---- Prepare for update -----------
  1028. //
  1029. if ((this.@__111TableAdapter != null)) {
  1030. revertConnections.Add(this.@__111TableAdapter, this.@__111TableAdapter.Connection);
  1031. this.@__111TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1032. this.@__111TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1033. if (this.@__111TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1034. this.@__111TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1035. adaptersWithAcceptChangesDuringUpdate.Add(this.@__111TableAdapter.Adapter);
  1036. }
  1037. }
  1038. //
  1039. //---- Perform updates -----------
  1040. //
  1041. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1042. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1043. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1044. }
  1045. else {
  1046. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1047. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1048. }
  1049. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1050. //
  1051. //---- Commit updates -----------
  1052. //
  1053. workTransaction.Commit();
  1054. if ((0 < allAddedRows.Count)) {
  1055. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1056. allAddedRows.CopyTo(rows);
  1057. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1058. global::System.Data.DataRow row = rows[i];
  1059. row.AcceptChanges();
  1060. }
  1061. }
  1062. if ((0 < allChangedRows.Count)) {
  1063. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1064. allChangedRows.CopyTo(rows);
  1065. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1066. global::System.Data.DataRow row = rows[i];
  1067. row.AcceptChanges();
  1068. }
  1069. }
  1070. }
  1071. catch (global::System.Exception ex) {
  1072. workTransaction.Rollback();
  1073. // ---- Restore the dataset -----------
  1074. if (this.BackupDataSetBeforeUpdate) {
  1075. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1076. dataSet.Clear();
  1077. dataSet.Merge(backupDataSet);
  1078. }
  1079. else {
  1080. if ((0 < allAddedRows.Count)) {
  1081. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1082. allAddedRows.CopyTo(rows);
  1083. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1084. global::System.Data.DataRow row = rows[i];
  1085. row.AcceptChanges();
  1086. row.SetAdded();
  1087. }
  1088. }
  1089. }
  1090. throw ex;
  1091. }
  1092. finally {
  1093. if (workConnOpened) {
  1094. workConnection.Close();
  1095. }
  1096. if ((this.@__111TableAdapter != null)) {
  1097. this.@__111TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this.@__111TableAdapter]));
  1098. this.@__111TableAdapter.Transaction = null;
  1099. }
  1100. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1101. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1102. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1103. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1104. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1105. adapter.AcceptChangesDuringUpdate = true;
  1106. }
  1107. }
  1108. }
  1109. return result;
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1114. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1119. if ((this._connection != null)) {
  1120. return true;
  1121. }
  1122. if (((this.Connection == null)
  1123. || (inputConnection == null))) {
  1124. return true;
  1125. }
  1126. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1127. return true;
  1128. }
  1129. return false;
  1130. }
  1131. /// <summary>
  1132. ///Update Order Option
  1133. ///</summary>
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. public enum UpdateOrderOption {
  1136. InsertUpdateDelete = 0,
  1137. UpdateInsertDelete = 1,
  1138. }
  1139. /// <summary>
  1140. ///Used to sort self-referenced table's rows
  1141. ///</summary>
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1144. private global::System.Data.DataRelation _relation;
  1145. private int _childFirst;
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1148. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1149. this._relation = relation;
  1150. if (childFirst) {
  1151. this._childFirst = -1;
  1152. }
  1153. else {
  1154. this._childFirst = 1;
  1155. }
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1160. global::System.Diagnostics.Debug.Assert((row != null));
  1161. global::System.Data.DataRow root = row;
  1162. distance = 0;
  1163. 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>();
  1164. traversedRows[row] = row;
  1165. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1166. for (
  1167. ; ((parent != null)
  1168. && (traversedRows.ContainsKey(parent) == false));
  1169. ) {
  1170. distance = (distance + 1);
  1171. root = parent;
  1172. traversedRows[parent] = parent;
  1173. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1174. }
  1175. if ((distance == 0)) {
  1176. traversedRows.Clear();
  1177. traversedRows[row] = row;
  1178. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1179. for (
  1180. ; ((parent != null)
  1181. && (traversedRows.ContainsKey(parent) == false));
  1182. ) {
  1183. distance = (distance + 1);
  1184. root = parent;
  1185. traversedRows[parent] = parent;
  1186. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1187. }
  1188. }
  1189. return root;
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1194. if (object.ReferenceEquals(row1, row2)) {
  1195. return 0;
  1196. }
  1197. if ((row1 == null)) {
  1198. return -1;
  1199. }
  1200. if ((row2 == null)) {
  1201. return 1;
  1202. }
  1203. int distance1 = 0;
  1204. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1205. int distance2 = 0;
  1206. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1207. if (object.ReferenceEquals(root1, root2)) {
  1208. return (this._childFirst * distance1.CompareTo(distance2));
  1209. }
  1210. else {
  1211. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1212. && (root2.Table != null)));
  1213. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1214. return -1;
  1215. }
  1216. else {
  1217. return 1;
  1218. }
  1219. }
  1220. }
  1221. }
  1222. }
  1223. }
  1224. #pragma warning restore 1591