- Timestamp:
- 11/27/08 17:19:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs
r826 r845 26 26 public partial class dsHiveServer : global::System.Data.DataSet { 27 27 28 private ResourceDataTable tableResource; 29 28 30 private ClientDataTable tableClient; 29 31 30 private ResourceDataTable tableResource; 32 private HiveUserDataTable tableHiveUser; 33 34 private PermissionOwnerDataTable tablePermissionOwner; 31 35 32 36 private global::System.Data.DataRelation relationClient_is_a_Resource; 37 38 private global::System.Data.DataRelation relationUser_is_a_PermissionOwner; 33 39 34 40 private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; … … 58 64 global::System.Data.DataSet ds = new global::System.Data.DataSet(); 59 65 ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); 66 if ((ds.Tables["Resource"] != null)) { 67 base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"])); 68 } 60 69 if ((ds.Tables["Client"] != null)) { 61 70 base.Tables.Add(new ClientDataTable(ds.Tables["Client"])); 62 71 } 63 if ((ds.Tables["Resource"] != null)) { 64 base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"])); 72 if ((ds.Tables["HiveUser"] != null)) { 73 base.Tables.Add(new HiveUserDataTable(ds.Tables["HiveUser"])); 74 } 75 if ((ds.Tables["PermissionOwner"] != null)) { 76 base.Tables.Add(new PermissionOwnerDataTable(ds.Tables["PermissionOwner"])); 65 77 } 66 78 this.DataSetName = ds.DataSetName; … … 85 97 [global::System.ComponentModel.Browsable(false)] 86 98 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 99 public ResourceDataTable Resource { 100 get { 101 return this.tableResource; 102 } 103 } 104 105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 106 [global::System.ComponentModel.Browsable(false)] 107 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 87 108 public ClientDataTable Client { 88 109 get { … … 94 115 [global::System.ComponentModel.Browsable(false)] 95 116 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 96 public ResourceDataTable Resource{117 public HiveUserDataTable HiveUser { 97 118 get { 98 return this.tableResource; 119 return this.tableHiveUser; 120 } 121 } 122 123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 124 [global::System.ComponentModel.Browsable(false)] 125 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] 126 public PermissionOwnerDataTable PermissionOwner { 127 get { 128 return this.tablePermissionOwner; 99 129 } 100 130 } … … 159 189 global::System.Data.DataSet ds = new global::System.Data.DataSet(); 160 190 ds.ReadXml(reader); 191 if ((ds.Tables["Resource"] != null)) { 192 base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"])); 193 } 161 194 if ((ds.Tables["Client"] != null)) { 162 195 base.Tables.Add(new ClientDataTable(ds.Tables["Client"])); 163 196 } 164 if ((ds.Tables["Resource"] != null)) { 165 base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"])); 197 if ((ds.Tables["HiveUser"] != null)) { 198 base.Tables.Add(new HiveUserDataTable(ds.Tables["HiveUser"])); 199 } 200 if ((ds.Tables["PermissionOwner"] != null)) { 201 base.Tables.Add(new PermissionOwnerDataTable(ds.Tables["PermissionOwner"])); 166 202 } 167 203 this.DataSetName = ds.DataSetName; … … 195 231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 196 232 internal void InitVars(bool initTable) { 233 this.tableResource = ((ResourceDataTable)(base.Tables["Resource"])); 234 if ((initTable == true)) { 235 if ((this.tableResource != null)) { 236 this.tableResource.InitVars(); 237 } 238 } 197 239 this.tableClient = ((ClientDataTable)(base.Tables["Client"])); 198 240 if ((initTable == true)) { … … 201 243 } 202 244 } 203 this.table Resource = ((ResourceDataTable)(base.Tables["Resource"]));245 this.tableHiveUser = ((HiveUserDataTable)(base.Tables["HiveUser"])); 204 246 if ((initTable == true)) { 205 if ((this.tableResource != null)) { 206 this.tableResource.InitVars(); 247 if ((this.tableHiveUser != null)) { 248 this.tableHiveUser.InitVars(); 249 } 250 } 251 this.tablePermissionOwner = ((PermissionOwnerDataTable)(base.Tables["PermissionOwner"])); 252 if ((initTable == true)) { 253 if ((this.tablePermissionOwner != null)) { 254 this.tablePermissionOwner.InitVars(); 207 255 } 208 256 } 209 257 this.relationClient_is_a_Resource = this.Relations["Client_is_a_Resource"]; 258 this.relationUser_is_a_PermissionOwner = this.Relations["User_is_a_PermissionOwner"]; 210 259 } 211 260 … … 217 266 this.EnforceConstraints = true; 218 267 this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; 268 this.tableResource = new ResourceDataTable(); 269 base.Tables.Add(this.tableResource); 219 270 this.tableClient = new ClientDataTable(); 220 271 base.Tables.Add(this.tableClient); 221 this.tableResource = new ResourceDataTable(); 222 base.Tables.Add(this.tableResource); 272 this.tableHiveUser = new HiveUserDataTable(); 273 base.Tables.Add(this.tableHiveUser); 274 this.tablePermissionOwner = new PermissionOwnerDataTable(); 275 base.Tables.Add(this.tablePermissionOwner); 223 276 this.relationClient_is_a_Resource = new global::System.Data.DataRelation("Client_is_a_Resource", new global::System.Data.DataColumn[] { 224 277 this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] { 225 278 this.tableClient.ResourceIdColumn}, false); 226 279 this.Relations.Add(this.relationClient_is_a_Resource); 280 this.relationUser_is_a_PermissionOwner = new global::System.Data.DataRelation("User_is_a_PermissionOwner", new global::System.Data.DataColumn[] { 281 this.tablePermissionOwner.PermissionOwnerIdColumn}, new global::System.Data.DataColumn[] { 282 this.tableHiveUser.PermissionOwnerIdColumn}, false); 283 this.Relations.Add(this.relationUser_is_a_PermissionOwner); 284 } 285 286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 287 private bool ShouldSerializeResource() { 288 return false; 227 289 } 228 290 … … 233 295 234 296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 235 private bool ShouldSerializeResource() { 297 private bool ShouldSerializeHiveUser() { 298 return false; 299 } 300 301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 302 private bool ShouldSerializePermissionOwner() { 236 303 return false; 237 304 } … … 290 357 } 291 358 359 public delegate void ResourceRowChangeEventHandler(object sender, ResourceRowChangeEvent e); 360 292 361 public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e); 293 362 294 public delegate void ResourceRowChangeEventHandler(object sender, ResourceRowChangeEvent e); 363 public delegate void HiveUserRowChangeEventHandler(object sender, HiveUserRowChangeEvent e); 364 365 public delegate void PermissionOwnerRowChangeEventHandler(object sender, PermissionOwnerRowChangeEvent e); 366 367 /// <summary> 368 ///Represents the strongly named DataTable class. 369 ///</summary> 370 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 371 [global::System.Serializable()] 372 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] 373 public partial class ResourceDataTable : global::System.Data.TypedTableBase<ResourceRow> { 374 375 private global::System.Data.DataColumn columnResourceId; 376 377 private global::System.Data.DataColumn columnName; 378 379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 380 public ResourceDataTable() { 381 this.TableName = "Resource"; 382 this.BeginInit(); 383 this.InitClass(); 384 this.EndInit(); 385 } 386 387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 388 internal ResourceDataTable(global::System.Data.DataTable table) { 389 this.TableName = table.TableName; 390 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { 391 this.CaseSensitive = table.CaseSensitive; 392 } 393 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { 394 this.Locale = table.Locale; 395 } 396 if ((table.Namespace != table.DataSet.Namespace)) { 397 this.Namespace = table.Namespace; 398 } 399 this.Prefix = table.Prefix; 400 this.MinimumCapacity = table.MinimumCapacity; 401 } 402 403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 404 protected ResourceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 405 base(info, context) { 406 this.InitVars(); 407 } 408 409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 410 public global::System.Data.DataColumn ResourceIdColumn { 411 get { 412 return this.columnResourceId; 413 } 414 } 415 416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 417 public global::System.Data.DataColumn NameColumn { 418 get { 419 return this.columnName; 420 } 421 } 422 423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 424 [global::System.ComponentModel.Browsable(false)] 425 public int Count { 426 get { 427 return this.Rows.Count; 428 } 429 } 430 431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 432 public ResourceRow this[int index] { 433 get { 434 return ((ResourceRow)(this.Rows[index])); 435 } 436 } 437 438 public event ResourceRowChangeEventHandler ResourceRowChanging; 439 440 public event ResourceRowChangeEventHandler ResourceRowChanged; 441 442 public event ResourceRowChangeEventHandler ResourceRowDeleting; 443 444 public event ResourceRowChangeEventHandler ResourceRowDeleted; 445 446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 447 public void AddResourceRow(ResourceRow row) { 448 this.Rows.Add(row); 449 } 450 451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 452 public ResourceRow AddResourceRow(string Name) { 453 ResourceRow rowResourceRow = ((ResourceRow)(this.NewRow())); 454 object[] columnValuesArray = new object[] { 455 null, 456 Name}; 457 rowResourceRow.ItemArray = columnValuesArray; 458 this.Rows.Add(rowResourceRow); 459 return rowResourceRow; 460 } 461 462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 463 public ResourceRow FindByResourceId(long ResourceId) { 464 return ((ResourceRow)(this.Rows.Find(new object[] { 465 ResourceId}))); 466 } 467 468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 469 public override global::System.Data.DataTable Clone() { 470 ResourceDataTable cln = ((ResourceDataTable)(base.Clone())); 471 cln.InitVars(); 472 return cln; 473 } 474 475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 476 protected override global::System.Data.DataTable CreateInstance() { 477 return new ResourceDataTable(); 478 } 479 480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 481 internal void InitVars() { 482 this.columnResourceId = base.Columns["ResourceId"]; 483 this.columnName = base.Columns["Name"]; 484 } 485 486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 487 private void InitClass() { 488 this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element); 489 base.Columns.Add(this.columnResourceId); 490 this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element); 491 base.Columns.Add(this.columnName); 492 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 493 this.columnResourceId}, true)); 494 this.columnResourceId.AutoIncrement = true; 495 this.columnResourceId.AutoIncrementSeed = -1; 496 this.columnResourceId.AutoIncrementStep = -1; 497 this.columnResourceId.AllowDBNull = false; 498 this.columnResourceId.ReadOnly = true; 499 this.columnResourceId.Unique = true; 500 this.columnName.MaxLength = 18; 501 } 502 503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 504 public ResourceRow NewResourceRow() { 505 return ((ResourceRow)(this.NewRow())); 506 } 507 508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 509 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { 510 return new ResourceRow(builder); 511 } 512 513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 514 protected override global::System.Type GetRowType() { 515 return typeof(ResourceRow); 516 } 517 518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 519 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { 520 base.OnRowChanged(e); 521 if ((this.ResourceRowChanged != null)) { 522 this.ResourceRowChanged(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action)); 523 } 524 } 525 526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 527 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { 528 base.OnRowChanging(e); 529 if ((this.ResourceRowChanging != null)) { 530 this.ResourceRowChanging(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action)); 531 } 532 } 533 534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 535 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { 536 base.OnRowDeleted(e); 537 if ((this.ResourceRowDeleted != null)) { 538 this.ResourceRowDeleted(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action)); 539 } 540 } 541 542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 543 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { 544 base.OnRowDeleting(e); 545 if ((this.ResourceRowDeleting != null)) { 546 this.ResourceRowDeleting(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action)); 547 } 548 } 549 550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 551 public void RemoveResourceRow(ResourceRow row) { 552 this.Rows.Remove(row); 553 } 554 555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 556 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { 557 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); 558 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); 559 dsHiveServer ds = new dsHiveServer(); 560 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); 561 any1.Namespace = "http://www.w3.org/2001/XMLSchema"; 562 any1.MinOccurs = new decimal(0); 563 any1.MaxOccurs = decimal.MaxValue; 564 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 565 sequence.Items.Add(any1); 566 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); 567 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; 568 any2.MinOccurs = new decimal(1); 569 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 570 sequence.Items.Add(any2); 571 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); 572 attribute1.Name = "namespace"; 573 attribute1.FixedValue = ds.Namespace; 574 type.Attributes.Add(attribute1); 575 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); 576 attribute2.Name = "tableTypeName"; 577 attribute2.FixedValue = "ResourceDataTable"; 578 type.Attributes.Add(attribute2); 579 type.Particle = sequence; 580 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); 581 if (xs.Contains(dsSchema.TargetNamespace)) { 582 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); 583 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); 584 try { 585 global::System.Xml.Schema.XmlSchema schema = null; 586 dsSchema.Write(s1); 587 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { 588 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); 589 s2.SetLength(0); 590 schema.Write(s2); 591 if ((s1.Length == s2.Length)) { 592 s1.Position = 0; 593 s2.Position = 0; 594 for (; ((s1.Position != s1.Length) 595 && (s1.ReadByte() == s2.ReadByte())); ) { 596 ; 597 } 598 if ((s1.Position == s1.Length)) { 599 return type; 600 } 601 } 602 } 603 } 604 finally { 605 if ((s1 != null)) { 606 s1.Close(); 607 } 608 if ((s2 != null)) { 609 s2.Close(); 610 } 611 } 612 } 613 xs.Add(dsSchema); 614 return type; 615 } 616 } 295 617 296 618 /// <summary> … … 433 755 434 756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 435 public ClientRow AddClientRow(ResourceRow parentResourceRowByClient_is_a_Resource, System.Guid GUID, int CPUSpeed, string Memory, stringLogin, string Status, long ClientConfigId, int NumberOfCores) {757 public ClientRow AddClientRow(ResourceRow parentResourceRowByClient_is_a_Resource, System.Guid GUID, int CPUSpeed, int Memory, System.DateTime Login, string Status, long ClientConfigId, int NumberOfCores) { 436 758 ClientRow rowClientRow = ((ClientRow)(this.NewRow())); 437 759 object[] columnValuesArray = new object[] { … … 490 812 this.columnCPUSpeed = new global::System.Data.DataColumn("CPUSpeed", typeof(int), null, global::System.Data.MappingType.Element); 491 813 base.Columns.Add(this.columnCPUSpeed); 492 this.columnMemory = new global::System.Data.DataColumn("Memory", typeof( string), null, global::System.Data.MappingType.Element);814 this.columnMemory = new global::System.Data.DataColumn("Memory", typeof(int), null, global::System.Data.MappingType.Element); 493 815 base.Columns.Add(this.columnMemory); 494 this.columnLogin = new global::System.Data.DataColumn("Login", typeof( string), null, global::System.Data.MappingType.Element);816 this.columnLogin = new global::System.Data.DataColumn("Login", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); 495 817 base.Columns.Add(this.columnLogin); 496 818 this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element); … … 504 826 this.columnResourceId.AllowDBNull = false; 505 827 this.columnResourceId.Unique = true; 506 this.columnMemory.MaxLength = 18;507 this.columnLogin.MaxLength = 18;508 828 this.columnStatus.MaxLength = 18; 509 829 } … … 630 950 [global::System.Serializable()] 631 951 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] 632 public partial class ResourceDataTable : global::System.Data.TypedTableBase<ResourceRow> {633 634 private global::System.Data.DataColumn column ResourceId;635 636 private global::System.Data.DataColumn column Name;637 638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 639 public ResourceDataTable() {640 this.TableName = " Resource";952 public partial class HiveUserDataTable : global::System.Data.TypedTableBase<HiveUserRow> { 953 954 private global::System.Data.DataColumn columnPermissionOwnerId; 955 956 private global::System.Data.DataColumn columnPassword; 957 958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 959 public HiveUserDataTable() { 960 this.TableName = "HiveUser"; 641 961 this.BeginInit(); 642 962 this.InitClass(); … … 645 965 646 966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 647 internal ResourceDataTable(global::System.Data.DataTable table) {967 internal HiveUserDataTable(global::System.Data.DataTable table) { 648 968 this.TableName = table.TableName; 649 969 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { … … 661 981 662 982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 663 protected ResourceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :983 protected HiveUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 664 984 base(info, context) { 665 985 this.InitVars(); … … 667 987 668 988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 669 public global::System.Data.DataColumn ResourceIdColumn {670 get { 671 return this.column ResourceId;672 } 673 } 674 675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 676 public global::System.Data.DataColumn NameColumn {677 get { 678 return this.column Name;989 public global::System.Data.DataColumn PermissionOwnerIdColumn { 990 get { 991 return this.columnPermissionOwnerId; 992 } 993 } 994 995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 996 public global::System.Data.DataColumn PasswordColumn { 997 get { 998 return this.columnPassword; 679 999 } 680 1000 } … … 689 1009 690 1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 691 public ResourceRow this[int index] {692 get { 693 return (( ResourceRow)(this.Rows[index]));694 } 695 } 696 697 public event ResourceRowChangeEventHandler ResourceRowChanging;698 699 public event ResourceRowChangeEventHandler ResourceRowChanged;700 701 public event ResourceRowChangeEventHandler ResourceRowDeleting;702 703 public event ResourceRowChangeEventHandler ResourceRowDeleted;704 705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 706 public void Add ResourceRow(ResourceRow row) {1011 public HiveUserRow this[int index] { 1012 get { 1013 return ((HiveUserRow)(this.Rows[index])); 1014 } 1015 } 1016 1017 public event HiveUserRowChangeEventHandler HiveUserRowChanging; 1018 1019 public event HiveUserRowChangeEventHandler HiveUserRowChanged; 1020 1021 public event HiveUserRowChangeEventHandler HiveUserRowDeleting; 1022 1023 public event HiveUserRowChangeEventHandler HiveUserRowDeleted; 1024 1025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1026 public void AddHiveUserRow(HiveUserRow row) { 707 1027 this.Rows.Add(row); 708 1028 } 709 1029 710 1030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 711 public ResourceRow AddResourceRow(string Name) {712 ResourceRow rowResourceRow = ((ResourceRow)(this.NewRow()));1031 public HiveUserRow AddHiveUserRow(PermissionOwnerRow parentPermissionOwnerRowByUser_is_a_PermissionOwner, string Password) { 1032 HiveUserRow rowHiveUserRow = ((HiveUserRow)(this.NewRow())); 713 1033 object[] columnValuesArray = new object[] { 714 1034 null, 715 Name}; 716 rowResourceRow.ItemArray = columnValuesArray; 717 this.Rows.Add(rowResourceRow); 718 return rowResourceRow; 719 } 720 721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 722 public ResourceRow FindByResourceId(long ResourceId) { 723 return ((ResourceRow)(this.Rows.Find(new object[] { 724 ResourceId}))); 1035 Password}; 1036 if ((parentPermissionOwnerRowByUser_is_a_PermissionOwner != null)) { 1037 columnValuesArray[0] = parentPermissionOwnerRowByUser_is_a_PermissionOwner[0]; 1038 } 1039 rowHiveUserRow.ItemArray = columnValuesArray; 1040 this.Rows.Add(rowHiveUserRow); 1041 return rowHiveUserRow; 1042 } 1043 1044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1045 public HiveUserRow FindByPermissionOwnerId(long PermissionOwnerId) { 1046 return ((HiveUserRow)(this.Rows.Find(new object[] { 1047 PermissionOwnerId}))); 725 1048 } 726 1049 727 1050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 728 1051 public override global::System.Data.DataTable Clone() { 729 ResourceDataTable cln = ((ResourceDataTable)(base.Clone()));1052 HiveUserDataTable cln = ((HiveUserDataTable)(base.Clone())); 730 1053 cln.InitVars(); 731 1054 return cln; … … 734 1057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 735 1058 protected override global::System.Data.DataTable CreateInstance() { 736 return new ResourceDataTable();1059 return new HiveUserDataTable(); 737 1060 } 738 1061 739 1062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 740 1063 internal void InitVars() { 741 this.column ResourceId = base.Columns["ResourceId"];742 this.column Name = base.Columns["Name"];1064 this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"]; 1065 this.columnPassword = base.Columns["Password"]; 743 1066 } 744 1067 745 1068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 746 1069 private void InitClass() { 747 this.column ResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element);748 base.Columns.Add(this.column ResourceId);749 this.column Name = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);750 base.Columns.Add(this.column Name);1070 this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element); 1071 base.Columns.Add(this.columnPermissionOwnerId); 1072 this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element); 1073 base.Columns.Add(this.columnPassword); 751 1074 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 752 this.columnResourceId}, true)); 753 this.columnResourceId.AutoIncrement = true; 754 this.columnResourceId.AutoIncrementSeed = -1; 755 this.columnResourceId.AutoIncrementStep = -1; 756 this.columnResourceId.AllowDBNull = false; 757 this.columnResourceId.ReadOnly = true; 758 this.columnResourceId.Unique = true; 759 this.columnName.MaxLength = 18; 760 } 761 762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 763 public ResourceRow NewResourceRow() { 764 return ((ResourceRow)(this.NewRow())); 1075 this.columnPermissionOwnerId}, true)); 1076 this.columnPermissionOwnerId.AllowDBNull = false; 1077 this.columnPermissionOwnerId.Unique = true; 1078 this.columnPassword.MaxLength = 18; 1079 } 1080 1081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1082 public HiveUserRow NewHiveUserRow() { 1083 return ((HiveUserRow)(this.NewRow())); 765 1084 } 766 1085 767 1086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 768 1087 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { 769 return new ResourceRow(builder);1088 return new HiveUserRow(builder); 770 1089 } 771 1090 772 1091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 773 1092 protected override global::System.Type GetRowType() { 774 return typeof( ResourceRow);1093 return typeof(HiveUserRow); 775 1094 } 776 1095 … … 778 1097 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { 779 1098 base.OnRowChanged(e); 780 if ((this. ResourceRowChanged != null)) {781 this. ResourceRowChanged(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));1099 if ((this.HiveUserRowChanged != null)) { 1100 this.HiveUserRowChanged(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action)); 782 1101 } 783 1102 } … … 786 1105 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { 787 1106 base.OnRowChanging(e); 788 if ((this. ResourceRowChanging != null)) {789 this. ResourceRowChanging(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));1107 if ((this.HiveUserRowChanging != null)) { 1108 this.HiveUserRowChanging(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action)); 790 1109 } 791 1110 } … … 794 1113 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { 795 1114 base.OnRowDeleted(e); 796 if ((this. ResourceRowDeleted != null)) {797 this. ResourceRowDeleted(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));1115 if ((this.HiveUserRowDeleted != null)) { 1116 this.HiveUserRowDeleted(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action)); 798 1117 } 799 1118 } … … 802 1121 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { 803 1122 base.OnRowDeleting(e); 804 if ((this. ResourceRowDeleting != null)) {805 this. ResourceRowDeleting(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));806 } 807 } 808 809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 810 public void Remove ResourceRow(ResourceRow row) {1123 if ((this.HiveUserRowDeleting != null)) { 1124 this.HiveUserRowDeleting(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action)); 1125 } 1126 } 1127 1128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1129 public void RemoveHiveUserRow(HiveUserRow row) { 811 1130 this.Rows.Remove(row); 812 1131 } … … 834 1153 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); 835 1154 attribute2.Name = "tableTypeName"; 836 attribute2.FixedValue = " ResourceDataTable";1155 attribute2.FixedValue = "HiveUserDataTable"; 837 1156 type.Attributes.Add(attribute2); 838 1157 type.Particle = sequence; … … 876 1195 877 1196 /// <summary> 878 ///Represents strongly named DataRowclass.1197 ///Represents the strongly named DataTable class. 879 1198 ///</summary> 880 1199 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 881 public partial class ClientRow : global::System.Data.DataRow { 882 883 private ClientDataTable tableClient; 884 885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 886 internal ClientRow(global::System.Data.DataRowBuilder rb) : 887 base(rb) { 888 this.tableClient = ((ClientDataTable)(this.Table)); 889 } 890 891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 892 public long ResourceId { 893 get { 894 return ((long)(this[this.tableClient.ResourceIdColumn])); 895 } 896 set { 897 this[this.tableClient.ResourceIdColumn] = value; 898 } 899 } 900 901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 902 public System.Guid GUID { 903 get { 1200 [global::System.Serializable()] 1201 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] 1202 public partial class PermissionOwnerDataTable : global::System.Data.TypedTableBase<PermissionOwnerRow> { 1203 1204 private global::System.Data.DataColumn columnPermissionOwnerId; 1205 1206 private global::System.Data.DataColumn columnName; 1207 1208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1209 public PermissionOwnerDataTable() { 1210 this.TableName = "PermissionOwner"; 1211 this.BeginInit(); 1212 this.InitClass(); 1213 this.EndInit(); 1214 } 1215 1216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1217 internal PermissionOwnerDataTable(global::System.Data.DataTable table) { 1218 this.TableName = table.TableName; 1219 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { 1220 this.CaseSensitive = table.CaseSensitive; 1221 } 1222 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { 1223 this.Locale = table.Locale; 1224 } 1225 if ((table.Namespace != table.DataSet.Namespace)) { 1226 this.Namespace = table.Namespace; 1227 } 1228 this.Prefix = table.Prefix; 1229 this.MinimumCapacity = table.MinimumCapacity; 1230 } 1231 1232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1233 protected PermissionOwnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 1234 base(info, context) { 1235 this.InitVars(); 1236 } 1237 1238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1239 public global::System.Data.DataColumn PermissionOwnerIdColumn { 1240 get { 1241 return this.columnPermissionOwnerId; 1242 } 1243 } 1244 1245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1246 public global::System.Data.DataColumn NameColumn { 1247 get { 1248 return this.columnName; 1249 } 1250 } 1251 1252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1253 [global::System.ComponentModel.Browsable(false)] 1254 public int Count { 1255 get { 1256 return this.Rows.Count; 1257 } 1258 } 1259 1260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1261 public PermissionOwnerRow this[int index] { 1262 get { 1263 return ((PermissionOwnerRow)(this.Rows[index])); 1264 } 1265 } 1266 1267 public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowChanging; 1268 1269 public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowChanged; 1270 1271 public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowDeleting; 1272 1273 public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowDeleted; 1274 1275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1276 public void AddPermissionOwnerRow(PermissionOwnerRow row) { 1277 this.Rows.Add(row); 1278 } 1279 1280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1281 public PermissionOwnerRow AddPermissionOwnerRow(string Name) { 1282 PermissionOwnerRow rowPermissionOwnerRow = ((PermissionOwnerRow)(this.NewRow())); 1283 object[] columnValuesArray = new object[] { 1284 null, 1285 Name}; 1286 rowPermissionOwnerRow.ItemArray = columnValuesArray; 1287 this.Rows.Add(rowPermissionOwnerRow); 1288 return rowPermissionOwnerRow; 1289 } 1290 1291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1292 public PermissionOwnerRow FindByPermissionOwnerId(long PermissionOwnerId) { 1293 return ((PermissionOwnerRow)(this.Rows.Find(new object[] { 1294 PermissionOwnerId}))); 1295 } 1296 1297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1298 public override global::System.Data.DataTable Clone() { 1299 PermissionOwnerDataTable cln = ((PermissionOwnerDataTable)(base.Clone())); 1300 cln.InitVars(); 1301 return cln; 1302 } 1303 1304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1305 protected override global::System.Data.DataTable CreateInstance() { 1306 return new PermissionOwnerDataTable(); 1307 } 1308 1309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1310 internal void InitVars() { 1311 this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"]; 1312 this.columnName = base.Columns["Name"]; 1313 } 1314 1315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1316 private void InitClass() { 1317 this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element); 1318 base.Columns.Add(this.columnPermissionOwnerId); 1319 this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element); 1320 base.Columns.Add(this.columnName); 1321 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 1322 this.columnPermissionOwnerId}, true)); 1323 this.columnPermissionOwnerId.AutoIncrement = true; 1324 this.columnPermissionOwnerId.AutoIncrementSeed = -1; 1325 this.columnPermissionOwnerId.AutoIncrementStep = -1; 1326 this.columnPermissionOwnerId.AllowDBNull = false; 1327 this.columnPermissionOwnerId.ReadOnly = true; 1328 this.columnPermissionOwnerId.Unique = true; 1329 this.columnName.MaxLength = 18; 1330 } 1331 1332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1333 public PermissionOwnerRow NewPermissionOwnerRow() { 1334 return ((PermissionOwnerRow)(this.NewRow())); 1335 } 1336 1337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1338 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { 1339 return new PermissionOwnerRow(builder); 1340 } 1341 1342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1343 protected override global::System.Type GetRowType() { 1344 return typeof(PermissionOwnerRow); 1345 } 1346 1347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1348 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { 1349 base.OnRowChanged(e); 1350 if ((this.PermissionOwnerRowChanged != null)) { 1351 this.PermissionOwnerRowChanged(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action)); 1352 } 1353 } 1354 1355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1356 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { 1357 base.OnRowChanging(e); 1358 if ((this.PermissionOwnerRowChanging != null)) { 1359 this.PermissionOwnerRowChanging(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action)); 1360 } 1361 } 1362 1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1364 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { 1365 base.OnRowDeleted(e); 1366 if ((this.PermissionOwnerRowDeleted != null)) { 1367 this.PermissionOwnerRowDeleted(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action)); 1368 } 1369 } 1370 1371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1372 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { 1373 base.OnRowDeleting(e); 1374 if ((this.PermissionOwnerRowDeleting != null)) { 1375 this.PermissionOwnerRowDeleting(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action)); 1376 } 1377 } 1378 1379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1380 public void RemovePermissionOwnerRow(PermissionOwnerRow row) { 1381 this.Rows.Remove(row); 1382 } 1383 1384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1385 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { 1386 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); 1387 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); 1388 dsHiveServer ds = new dsHiveServer(); 1389 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); 1390 any1.Namespace = "http://www.w3.org/2001/XMLSchema"; 1391 any1.MinOccurs = new decimal(0); 1392 any1.MaxOccurs = decimal.MaxValue; 1393 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 1394 sequence.Items.Add(any1); 1395 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); 1396 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; 1397 any2.MinOccurs = new decimal(1); 1398 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; 1399 sequence.Items.Add(any2); 1400 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); 1401 attribute1.Name = "namespace"; 1402 attribute1.FixedValue = ds.Namespace; 1403 type.Attributes.Add(attribute1); 1404 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); 1405 attribute2.Name = "tableTypeName"; 1406 attribute2.FixedValue = "PermissionOwnerDataTable"; 1407 type.Attributes.Add(attribute2); 1408 type.Particle = sequence; 1409 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); 1410 if (xs.Contains(dsSchema.TargetNamespace)) { 1411 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); 1412 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); 904 1413 try { 905 return ((global::System.Guid)(this[this.tableClient.GUIDColumn])); 906 } 907 catch (global::System.InvalidCastException e) { 908 throw new global::System.Data.StrongTypingException("The value for column \'GUID\' in table \'Client\' is DBNull.", e); 909 } 910 } 911 set { 912 this[this.tableClient.GUIDColumn] = value; 913 } 914 } 915 916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 917 public int CPUSpeed { 918 get { 919 try { 920 return ((int)(this[this.tableClient.CPUSpeedColumn])); 921 } 922 catch (global::System.InvalidCastException e) { 923 throw new global::System.Data.StrongTypingException("The value for column \'CPUSpeed\' in table \'Client\' is DBNull.", e); 924 } 925 } 926 set { 927 this[this.tableClient.CPUSpeedColumn] = value; 928 } 929 } 930 931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 932 public string Memory { 933 get { 934 try { 935 return ((string)(this[this.tableClient.MemoryColumn])); 936 } 937 catch (global::System.InvalidCastException e) { 938 throw new global::System.Data.StrongTypingException("The value for column \'Memory\' in table \'Client\' is DBNull.", e); 939 } 940 } 941 set { 942 this[this.tableClient.MemoryColumn] = value; 943 } 944 } 945 946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 947 public string Login { 948 get { 949 try { 950 return ((string)(this[this.tableClient.LoginColumn])); 951 } 952 catch (global::System.InvalidCastException e) { 953 throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Client\' is DBNull.", e); 954 } 955 } 956 set { 957 this[this.tableClient.LoginColumn] = value; 958 } 959 } 960 961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 962 public string Status { 963 get { 964 try { 965 return ((string)(this[this.tableClient.StatusColumn])); 966 } 967 catch (global::System.InvalidCastException e) { 968 throw new global::System.Data.StrongTypingException("The value for column \'Status\' in table \'Client\' is DBNull.", e); 969 } 970 } 971 set { 972 this[this.tableClient.StatusColumn] = value; 973 } 974 } 975 976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 977 public long ClientConfigId { 978 get { 979 try { 980 return ((long)(this[this.tableClient.ClientConfigIdColumn])); 981 } 982 catch (global::System.InvalidCastException e) { 983 throw new global::System.Data.StrongTypingException("The value for column \'ClientConfigId\' in table \'Client\' is DBNull.", e); 984 } 985 } 986 set { 987 this[this.tableClient.ClientConfigIdColumn] = value; 988 } 989 } 990 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 992 public int NumberOfCores { 993 get { 994 try { 995 return ((int)(this[this.tableClient.NumberOfCoresColumn])); 996 } 997 catch (global::System.InvalidCastException e) { 998 throw new global::System.Data.StrongTypingException("The value for column \'NumberOfCores\' in table \'Client\' is DBNull.", e); 999 } 1000 } 1001 set { 1002 this[this.tableClient.NumberOfCoresColumn] = value; 1003 } 1004 } 1005 1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1007 public ResourceRow ResourceRow { 1008 get { 1009 return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["Client_is_a_Resource"]))); 1010 } 1011 set { 1012 this.SetParentRow(value, this.Table.ParentRelations["Client_is_a_Resource"]); 1013 } 1014 } 1015 1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1017 public bool IsGUIDNull() { 1018 return this.IsNull(this.tableClient.GUIDColumn); 1019 } 1020 1021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1022 public void SetGUIDNull() { 1023 this[this.tableClient.GUIDColumn] = global::System.Convert.DBNull; 1024 } 1025 1026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1027 public bool IsCPUSpeedNull() { 1028 return this.IsNull(this.tableClient.CPUSpeedColumn); 1029 } 1030 1031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1032 public void SetCPUSpeedNull() { 1033 this[this.tableClient.CPUSpeedColumn] = global::System.Convert.DBNull; 1034 } 1035 1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1037 public bool IsMemoryNull() { 1038 return this.IsNull(this.tableClient.MemoryColumn); 1039 } 1040 1041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1042 public void SetMemoryNull() { 1043 this[this.tableClient.MemoryColumn] = global::System.Convert.DBNull; 1044 } 1045 1046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1047 public bool IsLoginNull() { 1048 return this.IsNull(this.tableClient.LoginColumn); 1049 } 1050 1051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1052 public void SetLoginNull() { 1053 this[this.tableClient.LoginColumn] = global::System.Convert.DBNull; 1054 } 1055 1056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1057 public bool IsStatusNull() { 1058 return this.IsNull(this.tableClient.StatusColumn); 1059 } 1060 1061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1062 public void SetStatusNull() { 1063 this[this.tableClient.StatusColumn] = global::System.Convert.DBNull; 1064 } 1065 1066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1067 public bool IsClientConfigIdNull() { 1068 return this.IsNull(this.tableClient.ClientConfigIdColumn); 1069 } 1070 1071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1072 public void SetClientConfigIdNull() { 1073 this[this.tableClient.ClientConfigIdColumn] = global::System.Convert.DBNull; 1074 } 1075 1076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1077 public bool IsNumberOfCoresNull() { 1078 return this.IsNull(this.tableClient.NumberOfCoresColumn); 1079 } 1080 1081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1082 public void SetNumberOfCoresNull() { 1083 this[this.tableClient.NumberOfCoresColumn] = global::System.Convert.DBNull; 1414 global::System.Xml.Schema.XmlSchema schema = null; 1415 dsSchema.Write(s1); 1416 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { 1417 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); 1418 s2.SetLength(0); 1419 schema.Write(s2); 1420 if ((s1.Length == s2.Length)) { 1421 s1.Position = 0; 1422 s2.Position = 0; 1423 for (; ((s1.Position != s1.Length) 1424 && (s1.ReadByte() == s2.ReadByte())); ) { 1425 ; 1426 } 1427 if ((s1.Position == s1.Length)) { 1428 return type; 1429 } 1430 } 1431 } 1432 } 1433 finally { 1434 if ((s1 != null)) { 1435 s1.Close(); 1436 } 1437 if ((s2 != null)) { 1438 s2.Close(); 1439 } 1440 } 1441 } 1442 xs.Add(dsSchema); 1443 return type; 1084 1444 } 1085 1445 } … … 1146 1506 1147 1507 /// <summary> 1148 ///R ow event argument class1508 ///Represents strongly named DataRow class. 1149 1509 ///</summary> 1150 1510 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1151 public class ClientRowChangeEvent : global::System.EventArgs { 1152 1153 private ClientRow eventRow; 1154 1155 private global::System.Data.DataRowAction eventAction; 1156 1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1158 public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) { 1159 this.eventRow = row; 1160 this.eventAction = action; 1161 } 1162 1163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1164 public ClientRow Row { 1165 get { 1166 return this.eventRow; 1167 } 1168 } 1169 1170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1171 public global::System.Data.DataRowAction Action { 1172 get { 1173 return this.eventAction; 1511 public partial class ClientRow : global::System.Data.DataRow { 1512 1513 private ClientDataTable tableClient; 1514 1515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1516 internal ClientRow(global::System.Data.DataRowBuilder rb) : 1517 base(rb) { 1518 this.tableClient = ((ClientDataTable)(this.Table)); 1519 } 1520 1521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1522 public long ResourceId { 1523 get { 1524 return ((long)(this[this.tableClient.ResourceIdColumn])); 1525 } 1526 set { 1527 this[this.tableClient.ResourceIdColumn] = value; 1528 } 1529 } 1530 1531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1532 public System.Guid GUID { 1533 get { 1534 try { 1535 return ((global::System.Guid)(this[this.tableClient.GUIDColumn])); 1536 } 1537 catch (global::System.InvalidCastException e) { 1538 throw new global::System.Data.StrongTypingException("The value for column \'GUID\' in table \'Client\' is DBNull.", e); 1539 } 1540 } 1541 set { 1542 this[this.tableClient.GUIDColumn] = value; 1543 } 1544 } 1545 1546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1547 public int CPUSpeed { 1548 get { 1549 try { 1550 return ((int)(this[this.tableClient.CPUSpeedColumn])); 1551 } 1552 catch (global::System.InvalidCastException e) { 1553 throw new global::System.Data.StrongTypingException("The value for column \'CPUSpeed\' in table \'Client\' is DBNull.", e); 1554 } 1555 } 1556 set { 1557 this[this.tableClient.CPUSpeedColumn] = value; 1558 } 1559 } 1560 1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1562 public int Memory { 1563 get { 1564 try { 1565 return ((int)(this[this.tableClient.MemoryColumn])); 1566 } 1567 catch (global::System.InvalidCastException e) { 1568 throw new global::System.Data.StrongTypingException("The value for column \'Memory\' in table \'Client\' is DBNull.", e); 1569 } 1570 } 1571 set { 1572 this[this.tableClient.MemoryColumn] = value; 1573 } 1574 } 1575 1576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1577 public System.DateTime Login { 1578 get { 1579 try { 1580 return ((global::System.DateTime)(this[this.tableClient.LoginColumn])); 1581 } 1582 catch (global::System.InvalidCastException e) { 1583 throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Client\' is DBNull.", e); 1584 } 1585 } 1586 set { 1587 this[this.tableClient.LoginColumn] = value; 1588 } 1589 } 1590 1591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1592 public string Status { 1593 get { 1594 try { 1595 return ((string)(this[this.tableClient.StatusColumn])); 1596 } 1597 catch (global::System.InvalidCastException e) { 1598 throw new global::System.Data.StrongTypingException("The value for column \'Status\' in table \'Client\' is DBNull.", e); 1599 } 1600 } 1601 set { 1602 this[this.tableClient.StatusColumn] = value; 1603 } 1604 } 1605 1606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1607 public long ClientConfigId { 1608 get { 1609 try { 1610 return ((long)(this[this.tableClient.ClientConfigIdColumn])); 1611 } 1612 catch (global::System.InvalidCastException e) { 1613 throw new global::System.Data.StrongTypingException("The value for column \'ClientConfigId\' in table \'Client\' is DBNull.", e); 1614 } 1615 } 1616 set { 1617 this[this.tableClient.ClientConfigIdColumn] = value; 1618 } 1619 } 1620 1621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1622 public int NumberOfCores { 1623 get { 1624 try { 1625 return ((int)(this[this.tableClient.NumberOfCoresColumn])); 1626 } 1627 catch (global::System.InvalidCastException e) { 1628 throw new global::System.Data.StrongTypingException("The value for column \'NumberOfCores\' in table \'Client\' is DBNull.", e); 1629 } 1630 } 1631 set { 1632 this[this.tableClient.NumberOfCoresColumn] = value; 1633 } 1634 } 1635 1636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1637 public ResourceRow ResourceRow { 1638 get { 1639 return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["Client_is_a_Resource"]))); 1640 } 1641 set { 1642 this.SetParentRow(value, this.Table.ParentRelations["Client_is_a_Resource"]); 1643 } 1644 } 1645 1646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1647 public bool IsGUIDNull() { 1648 return this.IsNull(this.tableClient.GUIDColumn); 1649 } 1650 1651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1652 public void SetGUIDNull() { 1653 this[this.tableClient.GUIDColumn] = global::System.Convert.DBNull; 1654 } 1655 1656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1657 public bool IsCPUSpeedNull() { 1658 return this.IsNull(this.tableClient.CPUSpeedColumn); 1659 } 1660 1661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1662 public void SetCPUSpeedNull() { 1663 this[this.tableClient.CPUSpeedColumn] = global::System.Convert.DBNull; 1664 } 1665 1666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1667 public bool IsMemoryNull() { 1668 return this.IsNull(this.tableClient.MemoryColumn); 1669 } 1670 1671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1672 public void SetMemoryNull() { 1673 this[this.tableClient.MemoryColumn] = global::System.Convert.DBNull; 1674 } 1675 1676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1677 public bool IsLoginNull() { 1678 return this.IsNull(this.tableClient.LoginColumn); 1679 } 1680 1681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1682 public void SetLoginNull() { 1683 this[this.tableClient.LoginColumn] = global::System.Convert.DBNull; 1684 } 1685 1686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1687 public bool IsStatusNull() { 1688 return this.IsNull(this.tableClient.StatusColumn); 1689 } 1690 1691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1692 public void SetStatusNull() { 1693 this[this.tableClient.StatusColumn] = global::System.Convert.DBNull; 1694 } 1695 1696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1697 public bool IsClientConfigIdNull() { 1698 return this.IsNull(this.tableClient.ClientConfigIdColumn); 1699 } 1700 1701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1702 public void SetClientConfigIdNull() { 1703 this[this.tableClient.ClientConfigIdColumn] = global::System.Convert.DBNull; 1704 } 1705 1706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1707 public bool IsNumberOfCoresNull() { 1708 return this.IsNull(this.tableClient.NumberOfCoresColumn); 1709 } 1710 1711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1712 public void SetNumberOfCoresNull() { 1713 this[this.tableClient.NumberOfCoresColumn] = global::System.Convert.DBNull; 1714 } 1715 } 1716 1717 /// <summary> 1718 ///Represents strongly named DataRow class. 1719 ///</summary> 1720 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1721 public partial class HiveUserRow : global::System.Data.DataRow { 1722 1723 private HiveUserDataTable tableHiveUser; 1724 1725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1726 internal HiveUserRow(global::System.Data.DataRowBuilder rb) : 1727 base(rb) { 1728 this.tableHiveUser = ((HiveUserDataTable)(this.Table)); 1729 } 1730 1731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1732 public long PermissionOwnerId { 1733 get { 1734 return ((long)(this[this.tableHiveUser.PermissionOwnerIdColumn])); 1735 } 1736 set { 1737 this[this.tableHiveUser.PermissionOwnerIdColumn] = value; 1738 } 1739 } 1740 1741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1742 public string Password { 1743 get { 1744 try { 1745 return ((string)(this[this.tableHiveUser.PasswordColumn])); 1746 } 1747 catch (global::System.InvalidCastException e) { 1748 throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'HiveUser\' is DBNull.", e); 1749 } 1750 } 1751 set { 1752 this[this.tableHiveUser.PasswordColumn] = value; 1753 } 1754 } 1755 1756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1757 public PermissionOwnerRow PermissionOwnerRow { 1758 get { 1759 return ((PermissionOwnerRow)(this.GetParentRow(this.Table.ParentRelations["User_is_a_PermissionOwner"]))); 1760 } 1761 set { 1762 this.SetParentRow(value, this.Table.ParentRelations["User_is_a_PermissionOwner"]); 1763 } 1764 } 1765 1766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1767 public bool IsPasswordNull() { 1768 return this.IsNull(this.tableHiveUser.PasswordColumn); 1769 } 1770 1771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1772 public void SetPasswordNull() { 1773 this[this.tableHiveUser.PasswordColumn] = global::System.Convert.DBNull; 1774 } 1775 } 1776 1777 /// <summary> 1778 ///Represents strongly named DataRow class. 1779 ///</summary> 1780 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1781 public partial class PermissionOwnerRow : global::System.Data.DataRow { 1782 1783 private PermissionOwnerDataTable tablePermissionOwner; 1784 1785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1786 internal PermissionOwnerRow(global::System.Data.DataRowBuilder rb) : 1787 base(rb) { 1788 this.tablePermissionOwner = ((PermissionOwnerDataTable)(this.Table)); 1789 } 1790 1791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1792 public long PermissionOwnerId { 1793 get { 1794 return ((long)(this[this.tablePermissionOwner.PermissionOwnerIdColumn])); 1795 } 1796 set { 1797 this[this.tablePermissionOwner.PermissionOwnerIdColumn] = value; 1798 } 1799 } 1800 1801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1802 public string Name { 1803 get { 1804 try { 1805 return ((string)(this[this.tablePermissionOwner.NameColumn])); 1806 } 1807 catch (global::System.InvalidCastException e) { 1808 throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'PermissionOwner\' is DBNull.", e); 1809 } 1810 } 1811 set { 1812 this[this.tablePermissionOwner.NameColumn] = value; 1813 } 1814 } 1815 1816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1817 public bool IsNameNull() { 1818 return this.IsNull(this.tablePermissionOwner.NameColumn); 1819 } 1820 1821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1822 public void SetNameNull() { 1823 this[this.tablePermissionOwner.NameColumn] = global::System.Convert.DBNull; 1824 } 1825 1826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1827 public HiveUserRow[] GetHiveUserRows() { 1828 if ((this.Table.ChildRelations["User_is_a_PermissionOwner"] == null)) { 1829 return new HiveUserRow[0]; 1830 } 1831 else { 1832 return ((HiveUserRow[])(base.GetChildRows(this.Table.ChildRelations["User_is_a_PermissionOwner"]))); 1174 1833 } 1175 1834 } … … 1206 1865 } 1207 1866 } 1867 1868 /// <summary> 1869 ///Row event argument class 1870 ///</summary> 1871 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1872 public class ClientRowChangeEvent : global::System.EventArgs { 1873 1874 private ClientRow eventRow; 1875 1876 private global::System.Data.DataRowAction eventAction; 1877 1878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1879 public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) { 1880 this.eventRow = row; 1881 this.eventAction = action; 1882 } 1883 1884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1885 public ClientRow Row { 1886 get { 1887 return this.eventRow; 1888 } 1889 } 1890 1891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1892 public global::System.Data.DataRowAction Action { 1893 get { 1894 return this.eventAction; 1895 } 1896 } 1897 } 1898 1899 /// <summary> 1900 ///Row event argument class 1901 ///</summary> 1902 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1903 public class HiveUserRowChangeEvent : global::System.EventArgs { 1904 1905 private HiveUserRow eventRow; 1906 1907 private global::System.Data.DataRowAction eventAction; 1908 1909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1910 public HiveUserRowChangeEvent(HiveUserRow row, global::System.Data.DataRowAction action) { 1911 this.eventRow = row; 1912 this.eventAction = action; 1913 } 1914 1915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1916 public HiveUserRow Row { 1917 get { 1918 return this.eventRow; 1919 } 1920 } 1921 1922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1923 public global::System.Data.DataRowAction Action { 1924 get { 1925 return this.eventAction; 1926 } 1927 } 1928 } 1929 1930 /// <summary> 1931 ///Row event argument class 1932 ///</summary> 1933 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 1934 public class PermissionOwnerRowChangeEvent : global::System.EventArgs { 1935 1936 private PermissionOwnerRow eventRow; 1937 1938 private global::System.Data.DataRowAction eventAction; 1939 1940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1941 public PermissionOwnerRowChangeEvent(PermissionOwnerRow row, global::System.Data.DataRowAction action) { 1942 this.eventRow = row; 1943 this.eventAction = action; 1944 } 1945 1946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1947 public PermissionOwnerRow Row { 1948 get { 1949 return this.eventRow; 1950 } 1951 } 1952 1953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1954 public global::System.Data.DataRowAction Action { 1955 get { 1956 return this.eventAction; 1957 } 1958 } 1959 } 1208 1960 } 1209 1961 } 1210 1962 namespace HeuristicLab.Hive.Server.ADODataAccess.dsHiveServerTableAdapters { 1211 1963 1212 1213 /// <summary>1214 ///Represents the connection and commands used to retrieve and save data.1215 ///</summary>1216 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]1217 [global::System.ComponentModel.DesignerCategoryAttribute("code")]1218 [global::System.ComponentModel.ToolboxItem(true)]1219 [global::System.ComponentModel.DataObjectAttribute(true)]1220 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +1221 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]1222 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1223 public partial class ClientTableAdapter : global::System.ComponentModel.Component {1224 1225 private global::System.Data.SqlClient.SqlDataAdapter _adapter;1226 1227 private global::System.Data.SqlClient.SqlConnection _connection;1228 1229 private global::System.Data.SqlClient.SqlTransaction _transaction;1230 1231 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;1232 1233 private bool _clearBeforeFill;1234 1235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1236 public ClientTableAdapter() {1237 this.ClearBeforeFill = true;1238 }1239 1240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1241 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {1242 get {1243 if ((this._adapter == null)) {1244 this.InitAdapter();1245 }1246 return this._adapter;1247 }1248 }1249 1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1251 internal global::System.Data.SqlClient.SqlConnection Connection {1252 get {1253 if ((this._connection == null)) {1254 this.InitConnection();1255 }1256 return this._connection;1257 }1258 set {1259 this._connection = value;1260 if ((this.Adapter.InsertCommand != null)) {1261 this.Adapter.InsertCommand.Connection = value;1262 }1263 if ((this.Adapter.DeleteCommand != null)) {1264 this.Adapter.DeleteCommand.Connection = value;1265 }1266 if ((this.Adapter.UpdateCommand != null)) {1267 this.Adapter.UpdateCommand.Connection = value;1268 }1269 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {1270 if ((this.CommandCollection[i] != null)) {1271 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;1272 }1273 }1274 }1275 }1276 1277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1278 internal global::System.Data.SqlClient.SqlTransaction Transaction {1279 get {1280 return this._transaction;1281 }1282 set {1283 this._transaction = value;1284 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {1285 this.CommandCollection[i].Transaction = this._transaction;1286 }1287 if (((this.Adapter != null)1288 && (this.Adapter.DeleteCommand != null))) {1289 this.Adapter.DeleteCommand.Transaction = this._transaction;1290 }1291 if (((this.Adapter != null)1292 && (this.Adapter.InsertCommand != null))) {1293 this.Adapter.InsertCommand.Transaction = this._transaction;1294 }1295 if (((this.Adapter != null)1296 && (this.Adapter.UpdateCommand != null))) {1297 this.Adapter.UpdateCommand.Transaction = this._transaction;1298 }1299 }1300 }1301 1302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1303 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {1304 get {1305 if ((this._commandCollection == null)) {1306 this.InitCommandCollection();1307 }1308 return this._commandCollection;1309 }1310 }1311 1312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1313 public bool ClearBeforeFill {1314 get {1315 return this._clearBeforeFill;1316 }1317 set {1318 this._clearBeforeFill = value;1319 }1320 }1321 1322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1323 private void InitAdapter() {1324 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();1325 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();1326 tableMapping.SourceTable = "Table";1327 tableMapping.DataSetTable = "Client";1328 tableMapping.ColumnMappings.Add("ResourceId", "ResourceId");1329 tableMapping.ColumnMappings.Add("GUID", "GUID");1330 tableMapping.ColumnMappings.Add("CPUSpeed", "CPUSpeed");1331 tableMapping.ColumnMappings.Add("Memory", "Memory");1332 tableMapping.ColumnMappings.Add("Login", "Login");1333 tableMapping.ColumnMappings.Add("Status", "Status");1334 tableMapping.ColumnMappings.Add("ClientConfigId", "ClientConfigId");1335 tableMapping.ColumnMappings.Add("NumberOfCores", "NumberOfCores");1336 this._adapter.TableMappings.Add(tableMapping);1337 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();1338 this._adapter.DeleteCommand.Connection = this.Connection;1339 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores)))";1340 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;1341 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1342 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1343 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1344 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1345 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1346 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1347 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1348 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1349 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1350 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1351 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1352 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1353 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1354 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1355 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1356 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();1357 this._adapter.InsertCommand.Connection = this.Connection;1358 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([ResourceId], [GUID], [CPUSpeed], [Memory], [Login], [Status], [ClientConfigId], [NumberOfCores]) VALUES (@ResourceId, @GUID, @CPUSpeed, @Memory, @Login, @Status, @ClientConfigId, @NumberOfCores);1359 SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)";1360 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;1361 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1362 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1363 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1364 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1365 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1366 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1367 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1368 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1369 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();1370 this._adapter.UpdateCommand.Connection = this.Connection;1371 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [ResourceId] = @ResourceId, [GUID] = @GUID, [CPUSpeed] = @CPUSpeed, [Memory] = @Memory, [Login] = @Login, [Status] = @Status, [ClientConfigId] = @ClientConfigId, [NumberOfCores] = @NumberOfCores WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores)));1372 SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)";1373 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;1374 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1375 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1376 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1377 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1378 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1379 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1380 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1381 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1382 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1383 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1384 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1385 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1386 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1387 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1388 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1389 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1390 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1391 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1392 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1393 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1394 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1395 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));1396 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));1397 }1398 1399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1400 private void InitConnection() {1401 this._connection = new global::System.Data.SqlClient.SqlConnection();1402 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;1403 }1404 1405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1406 private void InitCommandCollection() {1407 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];1408 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();1409 this._commandCollection[0].Connection = this.Connection;1410 this._commandCollection[0].CommandText = "SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberO" +1411 "fCores FROM dbo.Client";1412 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;1413 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();1414 this._commandCollection[1].Connection = this.Connection;1415 this._commandCollection[1].CommandText = "SELECT* FROM dbo.Client WHERE GUID = @ID";1416 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;1417 this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));1418 }1419 1420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1421 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1422 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]1423 public virtual int Fill(dsHiveServer.ClientDataTable dataTable) {1424 this.Adapter.SelectCommand = this.CommandCollection[0];1425 if ((this.ClearBeforeFill == true)) {1426 dataTable.Clear();1427 }1428 int returnValue = this.Adapter.Fill(dataTable);1429 return returnValue;1430 }1431 1432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1433 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1434 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]1435 public virtual dsHiveServer.ClientDataTable GetData() {1436 this.Adapter.SelectCommand = this.CommandCollection[0];1437 dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable();1438 this.Adapter.Fill(dataTable);1439 return dataTable;1440 }1441 1442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1443 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1444 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]1445 public virtual int FillById(dsHiveServer.ClientDataTable dataTable, global::System.Nullable<global::System.Guid> ID) {1446 this.Adapter.SelectCommand = this.CommandCollection[1];1447 if ((ID.HasValue == true)) {1448 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value));1449 }1450 else {1451 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;1452 }1453 if ((this.ClearBeforeFill == true)) {1454 dataTable.Clear();1455 }1456 int returnValue = this.Adapter.Fill(dataTable);1457 return returnValue;1458 }1459 1460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1461 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1462 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]1463 public virtual dsHiveServer.ClientDataTable GetDataById(global::System.Nullable<global::System.Guid> ID) {1464 this.Adapter.SelectCommand = this.CommandCollection[1];1465 if ((ID.HasValue == true)) {1466 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value));1467 }1468 else {1469 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;1470 }1471 dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable();1472 this.Adapter.Fill(dataTable);1473 return dataTable;1474 }1475 1476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1477 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1478 public virtual int Update(dsHiveServer.ClientDataTable dataTable) {1479 return this.Adapter.Update(dataTable);1480 }1481 1482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1483 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1484 public virtual int Update(dsHiveServer dataSet) {1485 return this.Adapter.Update(dataSet, "Client");1486 }1487 1488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1489 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1490 public virtual int Update(global::System.Data.DataRow dataRow) {1491 return this.Adapter.Update(new global::System.Data.DataRow[] {1492 dataRow});1493 }1494 1495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1496 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1497 public virtual int Update(global::System.Data.DataRow[] dataRows) {1498 return this.Adapter.Update(dataRows);1499 }1500 1501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1502 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1503 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]1504 public virtual int Delete(long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, string Original_Memory, string Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) {1505 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ResourceId));1506 if ((Original_GUID.HasValue == true)) {1507 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));1508 this.Adapter.DeleteCommand.Parameters[2].Value = ((System.Guid)(Original_GUID.Value));1509 }1510 else {1511 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));1512 this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;1513 }1514 if ((Original_CPUSpeed.HasValue == true)) {1515 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));1516 this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_CPUSpeed.Value));1517 }1518 else {1519 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));1520 this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;1521 }1522 if ((Original_Memory == null)) {1523 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));1524 this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;1525 }1526 else {1527 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));1528 this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Memory));1529 }1530 if ((Original_Login == null)) {1531 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));1532 this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;1533 }1534 else {1535 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));1536 this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));1537 }1538 if ((Original_Status == null)) {1539 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));1540 this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;1541 }1542 else {1543 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));1544 this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Status));1545 }1546 if ((Original_ClientConfigId.HasValue == true)) {1547 this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));1548 this.Adapter.DeleteCommand.Parameters[12].Value = ((long)(Original_ClientConfigId.Value));1549 }1550 else {1551 this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));1552 this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;1553 }1554 if ((Original_NumberOfCores.HasValue == true)) {1555 this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));1556 this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_NumberOfCores.Value));1557 }1558 else {1559 this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));1560 this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;1561 }1562 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;1563 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)1564 != global::System.Data.ConnectionState.Open)) {1565 this.Adapter.DeleteCommand.Connection.Open();1566 }1567 try {1568 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();1569 return returnValue;1570 }1571 finally {1572 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {1573 this.Adapter.DeleteCommand.Connection.Close();1574 }1575 }1576 }1577 1578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1579 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1580 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]1581 public virtual int Insert(long ResourceId, global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, string Memory, string Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores) {1582 this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ResourceId));1583 if ((GUID.HasValue == true)) {1584 this.Adapter.InsertCommand.Parameters[1].Value = ((System.Guid)(GUID.Value));1585 }1586 else {1587 this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;1588 }1589 if ((CPUSpeed.HasValue == true)) {1590 this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CPUSpeed.Value));1591 }1592 else {1593 this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;1594 }1595 if ((Memory == null)) {1596 this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;1597 }1598 else {1599 this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Memory));1600 }1601 if ((Login == null)) {1602 this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;1603 }1604 else {1605 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Login));1606 }1607 if ((Status == null)) {1608 this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;1609 }1610 else {1611 this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Status));1612 }1613 if ((ClientConfigId.HasValue == true)) {1614 this.Adapter.InsertCommand.Parameters[6].Value = ((long)(ClientConfigId.Value));1615 }1616 else {1617 this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;1618 }1619 if ((NumberOfCores.HasValue == true)) {1620 this.Adapter.InsertCommand.Parameters[7].Value = ((int)(NumberOfCores.Value));1621 }1622 else {1623 this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;1624 }1625 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;1626 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)1627 != global::System.Data.ConnectionState.Open)) {1628 this.Adapter.InsertCommand.Connection.Open();1629 }1630 try {1631 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();1632 return returnValue;1633 }1634 finally {1635 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {1636 this.Adapter.InsertCommand.Connection.Close();1637 }1638 }1639 }1640 1641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1642 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1643 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]1644 public virtual int Update(1645 long ResourceId,1646 global::System.Nullable<global::System.Guid> GUID,1647 global::System.Nullable<int> CPUSpeed,1648 string Memory,1649 string Login,1650 string Status,1651 global::System.Nullable<long> ClientConfigId,1652 global::System.Nullable<int> NumberOfCores,1653 long Original_ResourceId,1654 global::System.Nullable<global::System.Guid> Original_GUID,1655 global::System.Nullable<int> Original_CPUSpeed,1656 string Original_Memory,1657 string Original_Login,1658 string Original_Status,1659 global::System.Nullable<long> Original_ClientConfigId,1660 global::System.Nullable<int> Original_NumberOfCores) {1661 this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ResourceId));1662 if ((GUID.HasValue == true)) {1663 this.Adapter.UpdateCommand.Parameters[1].Value = ((System.Guid)(GUID.Value));1664 }1665 else {1666 this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;1667 }1668 if ((CPUSpeed.HasValue == true)) {1669 this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CPUSpeed.Value));1670 }1671 else {1672 this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;1673 }1674 if ((Memory == null)) {1675 this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;1676 }1677 else {1678 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Memory));1679 }1680 if ((Login == null)) {1681 this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;1682 }1683 else {1684 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Login));1685 }1686 if ((Status == null)) {1687 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;1688 }1689 else {1690 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Status));1691 }1692 if ((ClientConfigId.HasValue == true)) {1693 this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(ClientConfigId.Value));1694 }1695 else {1696 this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;1697 }1698 if ((NumberOfCores.HasValue == true)) {1699 this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(NumberOfCores.Value));1700 }1701 else {1702 this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;1703 }1704 this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ResourceId));1705 if ((Original_GUID.HasValue == true)) {1706 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));1707 this.Adapter.UpdateCommand.Parameters[10].Value = ((System.Guid)(Original_GUID.Value));1708 }1709 else {1710 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));1711 this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;1712 }1713 if ((Original_CPUSpeed.HasValue == true)) {1714 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));1715 this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_CPUSpeed.Value));1716 }1717 else {1718 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));1719 this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;1720 }1721 if ((Original_Memory == null)) {1722 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));1723 this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;1724 }1725 else {1726 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));1727 this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Memory));1728 }1729 if ((Original_Login == null)) {1730 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));1731 this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;1732 }1733 else {1734 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));1735 this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Login));1736 }1737 if ((Original_Status == null)) {1738 this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));1739 this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;1740 }1741 else {1742 this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));1743 this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Status));1744 }1745 if ((Original_ClientConfigId.HasValue == true)) {1746 this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));1747 this.Adapter.UpdateCommand.Parameters[20].Value = ((long)(Original_ClientConfigId.Value));1748 }1749 else {1750 this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));1751 this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;1752 }1753 if ((Original_NumberOfCores.HasValue == true)) {1754 this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));1755 this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_NumberOfCores.Value));1756 }1757 else {1758 this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));1759 this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;1760 }1761 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;1762 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)1763 != global::System.Data.ConnectionState.Open)) {1764 this.Adapter.UpdateCommand.Connection.Open();1765 }1766 try {1767 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();1768 return returnValue;1769 }1770 finally {1771 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {1772 this.Adapter.UpdateCommand.Connection.Close();1773 }1774 }1775 }1776 1777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]1778 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]1779 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]1780 public virtual int Update(global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, string Memory, string Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores, long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, string Original_Memory, string Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) {1781 return this.Update(Original_ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores, Original_ResourceId, Original_GUID, Original_CPUSpeed, Original_Memory, Original_Login, Original_Status, Original_ClientConfigId, Original_NumberOfCores);1782 }1783 }1784 1964 1785 1965 /// <summary> … … 2119 2299 2120 2300 /// <summary> 2301 ///Represents the connection and commands used to retrieve and save data. 2302 ///</summary> 2303 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 2304 [global::System.ComponentModel.DesignerCategoryAttribute("code")] 2305 [global::System.ComponentModel.ToolboxItem(true)] 2306 [global::System.ComponentModel.DataObjectAttribute(true)] 2307 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + 2308 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 2309 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2310 public partial class ClientTableAdapter : global::System.ComponentModel.Component { 2311 2312 private global::System.Data.SqlClient.SqlDataAdapter _adapter; 2313 2314 private global::System.Data.SqlClient.SqlConnection _connection; 2315 2316 private global::System.Data.SqlClient.SqlTransaction _transaction; 2317 2318 private global::System.Data.SqlClient.SqlCommand[] _commandCollection; 2319 2320 private bool _clearBeforeFill; 2321 2322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2323 public ClientTableAdapter() { 2324 this.ClearBeforeFill = true; 2325 } 2326 2327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2328 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { 2329 get { 2330 if ((this._adapter == null)) { 2331 this.InitAdapter(); 2332 } 2333 return this._adapter; 2334 } 2335 } 2336 2337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2338 internal global::System.Data.SqlClient.SqlConnection Connection { 2339 get { 2340 if ((this._connection == null)) { 2341 this.InitConnection(); 2342 } 2343 return this._connection; 2344 } 2345 set { 2346 this._connection = value; 2347 if ((this.Adapter.InsertCommand != null)) { 2348 this.Adapter.InsertCommand.Connection = value; 2349 } 2350 if ((this.Adapter.DeleteCommand != null)) { 2351 this.Adapter.DeleteCommand.Connection = value; 2352 } 2353 if ((this.Adapter.UpdateCommand != null)) { 2354 this.Adapter.UpdateCommand.Connection = value; 2355 } 2356 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 2357 if ((this.CommandCollection[i] != null)) { 2358 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; 2359 } 2360 } 2361 } 2362 } 2363 2364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2365 internal global::System.Data.SqlClient.SqlTransaction Transaction { 2366 get { 2367 return this._transaction; 2368 } 2369 set { 2370 this._transaction = value; 2371 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 2372 this.CommandCollection[i].Transaction = this._transaction; 2373 } 2374 if (((this.Adapter != null) 2375 && (this.Adapter.DeleteCommand != null))) { 2376 this.Adapter.DeleteCommand.Transaction = this._transaction; 2377 } 2378 if (((this.Adapter != null) 2379 && (this.Adapter.InsertCommand != null))) { 2380 this.Adapter.InsertCommand.Transaction = this._transaction; 2381 } 2382 if (((this.Adapter != null) 2383 && (this.Adapter.UpdateCommand != null))) { 2384 this.Adapter.UpdateCommand.Transaction = this._transaction; 2385 } 2386 } 2387 } 2388 2389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2390 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { 2391 get { 2392 if ((this._commandCollection == null)) { 2393 this.InitCommandCollection(); 2394 } 2395 return this._commandCollection; 2396 } 2397 } 2398 2399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2400 public bool ClearBeforeFill { 2401 get { 2402 return this._clearBeforeFill; 2403 } 2404 set { 2405 this._clearBeforeFill = value; 2406 } 2407 } 2408 2409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2410 private void InitAdapter() { 2411 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); 2412 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); 2413 tableMapping.SourceTable = "Table"; 2414 tableMapping.DataSetTable = "Client"; 2415 tableMapping.ColumnMappings.Add("ResourceId", "ResourceId"); 2416 tableMapping.ColumnMappings.Add("GUID", "GUID"); 2417 tableMapping.ColumnMappings.Add("CPUSpeed", "CPUSpeed"); 2418 tableMapping.ColumnMappings.Add("Memory", "Memory"); 2419 tableMapping.ColumnMappings.Add("Login", "Login"); 2420 tableMapping.ColumnMappings.Add("Status", "Status"); 2421 tableMapping.ColumnMappings.Add("ClientConfigId", "ClientConfigId"); 2422 tableMapping.ColumnMappings.Add("NumberOfCores", "NumberOfCores"); 2423 this._adapter.TableMappings.Add(tableMapping); 2424 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 2425 this._adapter.DeleteCommand.Connection = this.Connection; 2426 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores)))"; 2427 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; 2428 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2429 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2430 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2431 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2432 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2433 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2434 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2435 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2436 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2437 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2438 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2439 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2440 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2441 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2442 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2443 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 2444 this._adapter.InsertCommand.Connection = this.Connection; 2445 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([ResourceId], [GUID], [CPUSpeed], [Memory], [Login], [Status], [ClientConfigId], [NumberOfCores]) VALUES (@ResourceId, @GUID, @CPUSpeed, @Memory, @Login, @Status, @ClientConfigId, @NumberOfCores); 2446 SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)"; 2447 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 2448 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2449 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2450 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2451 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2452 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2453 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2454 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2455 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2456 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 2457 this._adapter.UpdateCommand.Connection = this.Connection; 2458 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [ResourceId] = @ResourceId, [GUID] = @GUID, [CPUSpeed] = @CPUSpeed, [Memory] = @Memory, [Login] = @Login, [Status] = @Status, [ClientConfigId] = @ClientConfigId, [NumberOfCores] = @NumberOfCores WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores))); 2459 SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)"; 2460 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 2461 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2462 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2463 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2464 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2465 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2466 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2467 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2468 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2469 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2470 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2471 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2472 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2473 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2474 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2475 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2476 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2477 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2478 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2479 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2480 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2481 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2482 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2483 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2484 } 2485 2486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2487 private void InitConnection() { 2488 this._connection = new global::System.Data.SqlClient.SqlConnection(); 2489 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString; 2490 } 2491 2492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2493 private void InitCommandCollection() { 2494 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; 2495 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 2496 this._commandCollection[0].Connection = this.Connection; 2497 this._commandCollection[0].CommandText = "SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberO" + 2498 "fCores FROM dbo.Client"; 2499 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 2500 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 2501 this._commandCollection[1].Connection = this.Connection; 2502 this._commandCollection[1].CommandText = "SELECT * FROM dbo.Client WHERE GUID = @ID"; 2503 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 2504 this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 2505 } 2506 2507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2508 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2509 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] 2510 public virtual int Fill(dsHiveServer.ClientDataTable dataTable) { 2511 this.Adapter.SelectCommand = this.CommandCollection[0]; 2512 if ((this.ClearBeforeFill == true)) { 2513 dataTable.Clear(); 2514 } 2515 int returnValue = this.Adapter.Fill(dataTable); 2516 return returnValue; 2517 } 2518 2519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2520 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2521 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] 2522 public virtual dsHiveServer.ClientDataTable GetData() { 2523 this.Adapter.SelectCommand = this.CommandCollection[0]; 2524 dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable(); 2525 this.Adapter.Fill(dataTable); 2526 return dataTable; 2527 } 2528 2529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2530 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2531 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 2532 public virtual int FillById(dsHiveServer.ClientDataTable dataTable, global::System.Nullable<global::System.Guid> ID) { 2533 this.Adapter.SelectCommand = this.CommandCollection[1]; 2534 if ((ID.HasValue == true)) { 2535 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value)); 2536 } 2537 else { 2538 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 2539 } 2540 if ((this.ClearBeforeFill == true)) { 2541 dataTable.Clear(); 2542 } 2543 int returnValue = this.Adapter.Fill(dataTable); 2544 return returnValue; 2545 } 2546 2547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2548 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2549 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 2550 public virtual dsHiveServer.ClientDataTable GetDataById(global::System.Nullable<global::System.Guid> ID) { 2551 this.Adapter.SelectCommand = this.CommandCollection[1]; 2552 if ((ID.HasValue == true)) { 2553 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value)); 2554 } 2555 else { 2556 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 2557 } 2558 dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable(); 2559 this.Adapter.Fill(dataTable); 2560 return dataTable; 2561 } 2562 2563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2564 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2565 public virtual int Update(dsHiveServer.ClientDataTable dataTable) { 2566 return this.Adapter.Update(dataTable); 2567 } 2568 2569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2570 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2571 public virtual int Update(dsHiveServer dataSet) { 2572 return this.Adapter.Update(dataSet, "Client"); 2573 } 2574 2575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2576 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2577 public virtual int Update(global::System.Data.DataRow dataRow) { 2578 return this.Adapter.Update(new global::System.Data.DataRow[] { 2579 dataRow}); 2580 } 2581 2582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2583 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2584 public virtual int Update(global::System.Data.DataRow[] dataRows) { 2585 return this.Adapter.Update(dataRows); 2586 } 2587 2588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2589 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2590 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] 2591 public virtual int Delete(long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, global::System.Nullable<int> Original_Memory, global::System.Nullable<global::System.DateTime> Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) { 2592 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ResourceId)); 2593 if ((Original_GUID.HasValue == true)) { 2594 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); 2595 this.Adapter.DeleteCommand.Parameters[2].Value = ((System.Guid)(Original_GUID.Value)); 2596 } 2597 else { 2598 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); 2599 this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; 2600 } 2601 if ((Original_CPUSpeed.HasValue == true)) { 2602 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); 2603 this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_CPUSpeed.Value)); 2604 } 2605 else { 2606 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); 2607 this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; 2608 } 2609 if ((Original_Memory.HasValue == true)) { 2610 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); 2611 this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Memory.Value)); 2612 } 2613 else { 2614 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); 2615 this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; 2616 } 2617 if ((Original_Login.HasValue == true)) { 2618 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); 2619 this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Login.Value)); 2620 } 2621 else { 2622 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); 2623 this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; 2624 } 2625 if ((Original_Status == null)) { 2626 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); 2627 this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; 2628 } 2629 else { 2630 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); 2631 this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Status)); 2632 } 2633 if ((Original_ClientConfigId.HasValue == true)) { 2634 this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); 2635 this.Adapter.DeleteCommand.Parameters[12].Value = ((long)(Original_ClientConfigId.Value)); 2636 } 2637 else { 2638 this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); 2639 this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; 2640 } 2641 if ((Original_NumberOfCores.HasValue == true)) { 2642 this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); 2643 this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_NumberOfCores.Value)); 2644 } 2645 else { 2646 this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); 2647 this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; 2648 } 2649 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 2650 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 2651 != global::System.Data.ConnectionState.Open)) { 2652 this.Adapter.DeleteCommand.Connection.Open(); 2653 } 2654 try { 2655 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); 2656 return returnValue; 2657 } 2658 finally { 2659 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 2660 this.Adapter.DeleteCommand.Connection.Close(); 2661 } 2662 } 2663 } 2664 2665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2666 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2667 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] 2668 public virtual int Insert(long ResourceId, global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, global::System.Nullable<int> Memory, global::System.Nullable<global::System.DateTime> Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores) { 2669 this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ResourceId)); 2670 if ((GUID.HasValue == true)) { 2671 this.Adapter.InsertCommand.Parameters[1].Value = ((System.Guid)(GUID.Value)); 2672 } 2673 else { 2674 this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; 2675 } 2676 if ((CPUSpeed.HasValue == true)) { 2677 this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CPUSpeed.Value)); 2678 } 2679 else { 2680 this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; 2681 } 2682 if ((Memory.HasValue == true)) { 2683 this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Memory.Value)); 2684 } 2685 else { 2686 this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; 2687 } 2688 if ((Login.HasValue == true)) { 2689 this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Login.Value)); 2690 } 2691 else { 2692 this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; 2693 } 2694 if ((Status == null)) { 2695 this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; 2696 } 2697 else { 2698 this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Status)); 2699 } 2700 if ((ClientConfigId.HasValue == true)) { 2701 this.Adapter.InsertCommand.Parameters[6].Value = ((long)(ClientConfigId.Value)); 2702 } 2703 else { 2704 this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; 2705 } 2706 if ((NumberOfCores.HasValue == true)) { 2707 this.Adapter.InsertCommand.Parameters[7].Value = ((int)(NumberOfCores.Value)); 2708 } 2709 else { 2710 this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; 2711 } 2712 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; 2713 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 2714 != global::System.Data.ConnectionState.Open)) { 2715 this.Adapter.InsertCommand.Connection.Open(); 2716 } 2717 try { 2718 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); 2719 return returnValue; 2720 } 2721 finally { 2722 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 2723 this.Adapter.InsertCommand.Connection.Close(); 2724 } 2725 } 2726 } 2727 2728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2729 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2730 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 2731 public virtual int Update( 2732 long ResourceId, 2733 global::System.Nullable<global::System.Guid> GUID, 2734 global::System.Nullable<int> CPUSpeed, 2735 global::System.Nullable<int> Memory, 2736 global::System.Nullable<global::System.DateTime> Login, 2737 string Status, 2738 global::System.Nullable<long> ClientConfigId, 2739 global::System.Nullable<int> NumberOfCores, 2740 long Original_ResourceId, 2741 global::System.Nullable<global::System.Guid> Original_GUID, 2742 global::System.Nullable<int> Original_CPUSpeed, 2743 global::System.Nullable<int> Original_Memory, 2744 global::System.Nullable<global::System.DateTime> Original_Login, 2745 string Original_Status, 2746 global::System.Nullable<long> Original_ClientConfigId, 2747 global::System.Nullable<int> Original_NumberOfCores) { 2748 this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ResourceId)); 2749 if ((GUID.HasValue == true)) { 2750 this.Adapter.UpdateCommand.Parameters[1].Value = ((System.Guid)(GUID.Value)); 2751 } 2752 else { 2753 this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; 2754 } 2755 if ((CPUSpeed.HasValue == true)) { 2756 this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CPUSpeed.Value)); 2757 } 2758 else { 2759 this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; 2760 } 2761 if ((Memory.HasValue == true)) { 2762 this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Memory.Value)); 2763 } 2764 else { 2765 this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; 2766 } 2767 if ((Login.HasValue == true)) { 2768 this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Login.Value)); 2769 } 2770 else { 2771 this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; 2772 } 2773 if ((Status == null)) { 2774 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; 2775 } 2776 else { 2777 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Status)); 2778 } 2779 if ((ClientConfigId.HasValue == true)) { 2780 this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(ClientConfigId.Value)); 2781 } 2782 else { 2783 this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; 2784 } 2785 if ((NumberOfCores.HasValue == true)) { 2786 this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(NumberOfCores.Value)); 2787 } 2788 else { 2789 this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; 2790 } 2791 this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ResourceId)); 2792 if ((Original_GUID.HasValue == true)) { 2793 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); 2794 this.Adapter.UpdateCommand.Parameters[10].Value = ((System.Guid)(Original_GUID.Value)); 2795 } 2796 else { 2797 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); 2798 this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; 2799 } 2800 if ((Original_CPUSpeed.HasValue == true)) { 2801 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); 2802 this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_CPUSpeed.Value)); 2803 } 2804 else { 2805 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); 2806 this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; 2807 } 2808 if ((Original_Memory.HasValue == true)) { 2809 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); 2810 this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Memory.Value)); 2811 } 2812 else { 2813 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); 2814 this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; 2815 } 2816 if ((Original_Login.HasValue == true)) { 2817 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); 2818 this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Login.Value)); 2819 } 2820 else { 2821 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); 2822 this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; 2823 } 2824 if ((Original_Status == null)) { 2825 this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); 2826 this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; 2827 } 2828 else { 2829 this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); 2830 this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Status)); 2831 } 2832 if ((Original_ClientConfigId.HasValue == true)) { 2833 this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); 2834 this.Adapter.UpdateCommand.Parameters[20].Value = ((long)(Original_ClientConfigId.Value)); 2835 } 2836 else { 2837 this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); 2838 this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; 2839 } 2840 if ((Original_NumberOfCores.HasValue == true)) { 2841 this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); 2842 this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_NumberOfCores.Value)); 2843 } 2844 else { 2845 this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); 2846 this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; 2847 } 2848 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 2849 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 2850 != global::System.Data.ConnectionState.Open)) { 2851 this.Adapter.UpdateCommand.Connection.Open(); 2852 } 2853 try { 2854 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); 2855 return returnValue; 2856 } 2857 finally { 2858 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 2859 this.Adapter.UpdateCommand.Connection.Close(); 2860 } 2861 } 2862 } 2863 2864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2865 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2866 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 2867 public virtual int Update(global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, global::System.Nullable<int> Memory, global::System.Nullable<global::System.DateTime> Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores, long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, global::System.Nullable<int> Original_Memory, global::System.Nullable<global::System.DateTime> Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) { 2868 return this.Update(Original_ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores, Original_ResourceId, Original_GUID, Original_CPUSpeed, Original_Memory, Original_Login, Original_Status, Original_ClientConfigId, Original_NumberOfCores); 2869 } 2870 } 2871 2872 /// <summary> 2873 ///Represents the connection and commands used to retrieve and save data. 2874 ///</summary> 2875 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 2876 [global::System.ComponentModel.DesignerCategoryAttribute("code")] 2877 [global::System.ComponentModel.ToolboxItem(true)] 2878 [global::System.ComponentModel.DataObjectAttribute(true)] 2879 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + 2880 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 2881 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 2882 public partial class HiveUserTableAdapter : global::System.ComponentModel.Component { 2883 2884 private global::System.Data.SqlClient.SqlDataAdapter _adapter; 2885 2886 private global::System.Data.SqlClient.SqlConnection _connection; 2887 2888 private global::System.Data.SqlClient.SqlTransaction _transaction; 2889 2890 private global::System.Data.SqlClient.SqlCommand[] _commandCollection; 2891 2892 private bool _clearBeforeFill; 2893 2894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2895 public HiveUserTableAdapter() { 2896 this.ClearBeforeFill = true; 2897 } 2898 2899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2900 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { 2901 get { 2902 if ((this._adapter == null)) { 2903 this.InitAdapter(); 2904 } 2905 return this._adapter; 2906 } 2907 } 2908 2909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2910 internal global::System.Data.SqlClient.SqlConnection Connection { 2911 get { 2912 if ((this._connection == null)) { 2913 this.InitConnection(); 2914 } 2915 return this._connection; 2916 } 2917 set { 2918 this._connection = value; 2919 if ((this.Adapter.InsertCommand != null)) { 2920 this.Adapter.InsertCommand.Connection = value; 2921 } 2922 if ((this.Adapter.DeleteCommand != null)) { 2923 this.Adapter.DeleteCommand.Connection = value; 2924 } 2925 if ((this.Adapter.UpdateCommand != null)) { 2926 this.Adapter.UpdateCommand.Connection = value; 2927 } 2928 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 2929 if ((this.CommandCollection[i] != null)) { 2930 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; 2931 } 2932 } 2933 } 2934 } 2935 2936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2937 internal global::System.Data.SqlClient.SqlTransaction Transaction { 2938 get { 2939 return this._transaction; 2940 } 2941 set { 2942 this._transaction = value; 2943 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 2944 this.CommandCollection[i].Transaction = this._transaction; 2945 } 2946 if (((this.Adapter != null) 2947 && (this.Adapter.DeleteCommand != null))) { 2948 this.Adapter.DeleteCommand.Transaction = this._transaction; 2949 } 2950 if (((this.Adapter != null) 2951 && (this.Adapter.InsertCommand != null))) { 2952 this.Adapter.InsertCommand.Transaction = this._transaction; 2953 } 2954 if (((this.Adapter != null) 2955 && (this.Adapter.UpdateCommand != null))) { 2956 this.Adapter.UpdateCommand.Transaction = this._transaction; 2957 } 2958 } 2959 } 2960 2961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2962 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { 2963 get { 2964 if ((this._commandCollection == null)) { 2965 this.InitCommandCollection(); 2966 } 2967 return this._commandCollection; 2968 } 2969 } 2970 2971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2972 public bool ClearBeforeFill { 2973 get { 2974 return this._clearBeforeFill; 2975 } 2976 set { 2977 this._clearBeforeFill = value; 2978 } 2979 } 2980 2981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 2982 private void InitAdapter() { 2983 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); 2984 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); 2985 tableMapping.SourceTable = "Table"; 2986 tableMapping.DataSetTable = "HiveUser"; 2987 tableMapping.ColumnMappings.Add("PermissionOwnerId", "PermissionOwnerId"); 2988 tableMapping.ColumnMappings.Add("Password", "Password"); 2989 this._adapter.TableMappings.Add(tableMapping); 2990 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 2991 this._adapter.DeleteCommand.Connection = this.Connection; 2992 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[HiveUser] WHERE (([PermissionOwnerId] = @Original_PermissionOw" + 2993 "nerId) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Orig" + 2994 "inal_Password)))"; 2995 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; 2996 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2997 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 2998 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 2999 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 3000 this._adapter.InsertCommand.Connection = this.Connection; 3001 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[HiveUser] ([PermissionOwnerId], [Password]) VALUES (@Permissio" + 3002 "nOwnerId, @Password);\r\nSELECT PermissionOwnerId, Password FROM HiveUser WHERE (P" + 3003 "ermissionOwnerId = @PermissionOwnerId)"; 3004 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 3005 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3006 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3007 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 3008 this._adapter.UpdateCommand.Connection = this.Connection; 3009 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[HiveUser] SET [PermissionOwnerId] = @PermissionOwnerId, [Password] = @Password WHERE (([PermissionOwnerId] = @Original_PermissionOwnerId) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password))); 3010 SELECT PermissionOwnerId, Password FROM HiveUser WHERE (PermissionOwnerId = @PermissionOwnerId)"; 3011 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 3012 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3013 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3014 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3015 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 3016 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3017 } 3018 3019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3020 private void InitConnection() { 3021 this._connection = new global::System.Data.SqlClient.SqlConnection(); 3022 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString; 3023 } 3024 3025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3026 private void InitCommandCollection() { 3027 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; 3028 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 3029 this._commandCollection[0].Connection = this.Connection; 3030 this._commandCollection[0].CommandText = "SELECT PermissionOwnerId, Password FROM dbo.HiveUser"; 3031 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 3032 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 3033 this._commandCollection[1].Connection = this.Connection; 3034 this._commandCollection[1].CommandText = "SELECT * FROM dbo.HiveUser WHERE PermissionOwnerId = @Id"; 3035 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 3036 this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3037 } 3038 3039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3040 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3041 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] 3042 public virtual int Fill(dsHiveServer.HiveUserDataTable dataTable) { 3043 this.Adapter.SelectCommand = this.CommandCollection[0]; 3044 if ((this.ClearBeforeFill == true)) { 3045 dataTable.Clear(); 3046 } 3047 int returnValue = this.Adapter.Fill(dataTable); 3048 return returnValue; 3049 } 3050 3051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3052 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3053 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] 3054 public virtual dsHiveServer.HiveUserDataTable GetData() { 3055 this.Adapter.SelectCommand = this.CommandCollection[0]; 3056 dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable(); 3057 this.Adapter.Fill(dataTable); 3058 return dataTable; 3059 } 3060 3061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3062 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3063 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 3064 public virtual int FillById(dsHiveServer.HiveUserDataTable dataTable, long Id) { 3065 this.Adapter.SelectCommand = this.CommandCollection[1]; 3066 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 3067 if ((this.ClearBeforeFill == true)) { 3068 dataTable.Clear(); 3069 } 3070 int returnValue = this.Adapter.Fill(dataTable); 3071 return returnValue; 3072 } 3073 3074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3075 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3076 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 3077 public virtual dsHiveServer.HiveUserDataTable GetDataById(long Id) { 3078 this.Adapter.SelectCommand = this.CommandCollection[1]; 3079 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 3080 dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable(); 3081 this.Adapter.Fill(dataTable); 3082 return dataTable; 3083 } 3084 3085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3086 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3087 public virtual int Update(dsHiveServer.HiveUserDataTable dataTable) { 3088 return this.Adapter.Update(dataTable); 3089 } 3090 3091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3092 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3093 public virtual int Update(dsHiveServer dataSet) { 3094 return this.Adapter.Update(dataSet, "HiveUser"); 3095 } 3096 3097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3098 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3099 public virtual int Update(global::System.Data.DataRow dataRow) { 3100 return this.Adapter.Update(new global::System.Data.DataRow[] { 3101 dataRow}); 3102 } 3103 3104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3105 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3106 public virtual int Update(global::System.Data.DataRow[] dataRows) { 3107 return this.Adapter.Update(dataRows); 3108 } 3109 3110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3111 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3112 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] 3113 public virtual int Delete(long Original_PermissionOwnerId, string Original_Password) { 3114 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId)); 3115 if ((Original_Password == null)) { 3116 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); 3117 this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; 3118 } 3119 else { 3120 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); 3121 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Password)); 3122 } 3123 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 3124 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 3125 != global::System.Data.ConnectionState.Open)) { 3126 this.Adapter.DeleteCommand.Connection.Open(); 3127 } 3128 try { 3129 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); 3130 return returnValue; 3131 } 3132 finally { 3133 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3134 this.Adapter.DeleteCommand.Connection.Close(); 3135 } 3136 } 3137 } 3138 3139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3140 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3141 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] 3142 public virtual int Insert(long PermissionOwnerId, string Password) { 3143 this.Adapter.InsertCommand.Parameters[0].Value = ((long)(PermissionOwnerId)); 3144 if ((Password == null)) { 3145 this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; 3146 } 3147 else { 3148 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password)); 3149 } 3150 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; 3151 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 3152 != global::System.Data.ConnectionState.Open)) { 3153 this.Adapter.InsertCommand.Connection.Open(); 3154 } 3155 try { 3156 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); 3157 return returnValue; 3158 } 3159 finally { 3160 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3161 this.Adapter.InsertCommand.Connection.Close(); 3162 } 3163 } 3164 } 3165 3166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3167 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3168 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 3169 public virtual int Update(long PermissionOwnerId, string Password, long Original_PermissionOwnerId, string Original_Password) { 3170 this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(PermissionOwnerId)); 3171 if ((Password == null)) { 3172 this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; 3173 } 3174 else { 3175 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Password)); 3176 } 3177 this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_PermissionOwnerId)); 3178 if ((Original_Password == null)) { 3179 this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); 3180 this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; 3181 } 3182 else { 3183 this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); 3184 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Password)); 3185 } 3186 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 3187 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 3188 != global::System.Data.ConnectionState.Open)) { 3189 this.Adapter.UpdateCommand.Connection.Open(); 3190 } 3191 try { 3192 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); 3193 return returnValue; 3194 } 3195 finally { 3196 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3197 this.Adapter.UpdateCommand.Connection.Close(); 3198 } 3199 } 3200 } 3201 3202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3203 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3204 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 3205 public virtual int Update(string Password, long Original_PermissionOwnerId, string Original_Password) { 3206 return this.Update(Original_PermissionOwnerId, Password, Original_PermissionOwnerId, Original_Password); 3207 } 3208 } 3209 3210 /// <summary> 3211 ///Represents the connection and commands used to retrieve and save data. 3212 ///</summary> 3213 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] 3214 [global::System.ComponentModel.DesignerCategoryAttribute("code")] 3215 [global::System.ComponentModel.ToolboxItem(true)] 3216 [global::System.ComponentModel.DataObjectAttribute(true)] 3217 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + 3218 ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 3219 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3220 public partial class PermissionOwnerTableAdapter : global::System.ComponentModel.Component { 3221 3222 private global::System.Data.SqlClient.SqlDataAdapter _adapter; 3223 3224 private global::System.Data.SqlClient.SqlConnection _connection; 3225 3226 private global::System.Data.SqlClient.SqlTransaction _transaction; 3227 3228 private global::System.Data.SqlClient.SqlCommand[] _commandCollection; 3229 3230 private bool _clearBeforeFill; 3231 3232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3233 public PermissionOwnerTableAdapter() { 3234 this.ClearBeforeFill = true; 3235 } 3236 3237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3238 protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { 3239 get { 3240 if ((this._adapter == null)) { 3241 this.InitAdapter(); 3242 } 3243 return this._adapter; 3244 } 3245 } 3246 3247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3248 internal global::System.Data.SqlClient.SqlConnection Connection { 3249 get { 3250 if ((this._connection == null)) { 3251 this.InitConnection(); 3252 } 3253 return this._connection; 3254 } 3255 set { 3256 this._connection = value; 3257 if ((this.Adapter.InsertCommand != null)) { 3258 this.Adapter.InsertCommand.Connection = value; 3259 } 3260 if ((this.Adapter.DeleteCommand != null)) { 3261 this.Adapter.DeleteCommand.Connection = value; 3262 } 3263 if ((this.Adapter.UpdateCommand != null)) { 3264 this.Adapter.UpdateCommand.Connection = value; 3265 } 3266 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 3267 if ((this.CommandCollection[i] != null)) { 3268 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; 3269 } 3270 } 3271 } 3272 } 3273 3274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3275 internal global::System.Data.SqlClient.SqlTransaction Transaction { 3276 get { 3277 return this._transaction; 3278 } 3279 set { 3280 this._transaction = value; 3281 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { 3282 this.CommandCollection[i].Transaction = this._transaction; 3283 } 3284 if (((this.Adapter != null) 3285 && (this.Adapter.DeleteCommand != null))) { 3286 this.Adapter.DeleteCommand.Transaction = this._transaction; 3287 } 3288 if (((this.Adapter != null) 3289 && (this.Adapter.InsertCommand != null))) { 3290 this.Adapter.InsertCommand.Transaction = this._transaction; 3291 } 3292 if (((this.Adapter != null) 3293 && (this.Adapter.UpdateCommand != null))) { 3294 this.Adapter.UpdateCommand.Transaction = this._transaction; 3295 } 3296 } 3297 } 3298 3299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3300 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { 3301 get { 3302 if ((this._commandCollection == null)) { 3303 this.InitCommandCollection(); 3304 } 3305 return this._commandCollection; 3306 } 3307 } 3308 3309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3310 public bool ClearBeforeFill { 3311 get { 3312 return this._clearBeforeFill; 3313 } 3314 set { 3315 this._clearBeforeFill = value; 3316 } 3317 } 3318 3319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3320 private void InitAdapter() { 3321 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); 3322 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); 3323 tableMapping.SourceTable = "Table"; 3324 tableMapping.DataSetTable = "PermissionOwner"; 3325 tableMapping.ColumnMappings.Add("PermissionOwnerId", "PermissionOwnerId"); 3326 tableMapping.ColumnMappings.Add("Name", "Name"); 3327 this._adapter.TableMappings.Add(tableMapping); 3328 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 3329 this._adapter.DeleteCommand.Connection = this.Connection; 3330 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PermissionOwner] WHERE (([PermissionOwnerId] = @Original_Permi" + 3331 "ssionOwnerId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_" + 3332 "Name)))"; 3333 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; 3334 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3335 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 3336 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3337 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 3338 this._adapter.InsertCommand.Connection = this.Connection; 3339 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PermissionOwner] ([Name]) VALUES (@Name);\r\nSELECT PermissionOw" + 3340 "nerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = SCOPE_IDENTITY())"; 3341 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 3342 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3343 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 3344 this._adapter.UpdateCommand.Connection = this.Connection; 3345 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PermissionOwner] SET [Name] = @Name WHERE (([PermissionOwnerId] = @Original_PermissionOwnerId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name))); 3346 SELECT PermissionOwnerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = @PermissionOwnerId)"; 3347 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 3348 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3349 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3350 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 3351 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 3352 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3353 } 3354 3355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3356 private void InitConnection() { 3357 this._connection = new global::System.Data.SqlClient.SqlConnection(); 3358 this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString; 3359 } 3360 3361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3362 private void InitCommandCollection() { 3363 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; 3364 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 3365 this._commandCollection[0].Connection = this.Connection; 3366 this._commandCollection[0].CommandText = "SELECT PermissionOwnerId, Name FROM dbo.PermissionOwner"; 3367 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 3368 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 3369 this._commandCollection[1].Connection = this.Connection; 3370 this._commandCollection[1].CommandText = "SELECT * FROM dbo.PermissionOwner WHERE PermissionOwnerId = @Id"; 3371 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 3372 this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 3373 } 3374 3375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3376 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3377 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] 3378 public virtual int Fill(dsHiveServer.PermissionOwnerDataTable dataTable) { 3379 this.Adapter.SelectCommand = this.CommandCollection[0]; 3380 if ((this.ClearBeforeFill == true)) { 3381 dataTable.Clear(); 3382 } 3383 int returnValue = this.Adapter.Fill(dataTable); 3384 return returnValue; 3385 } 3386 3387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3388 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3389 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] 3390 public virtual dsHiveServer.PermissionOwnerDataTable GetData() { 3391 this.Adapter.SelectCommand = this.CommandCollection[0]; 3392 dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable(); 3393 this.Adapter.Fill(dataTable); 3394 return dataTable; 3395 } 3396 3397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3398 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3399 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 3400 public virtual int FillById(dsHiveServer.PermissionOwnerDataTable dataTable, long Id) { 3401 this.Adapter.SelectCommand = this.CommandCollection[1]; 3402 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 3403 if ((this.ClearBeforeFill == true)) { 3404 dataTable.Clear(); 3405 } 3406 int returnValue = this.Adapter.Fill(dataTable); 3407 return returnValue; 3408 } 3409 3410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3411 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3412 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 3413 public virtual dsHiveServer.PermissionOwnerDataTable GetDataById(long Id) { 3414 this.Adapter.SelectCommand = this.CommandCollection[1]; 3415 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 3416 dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable(); 3417 this.Adapter.Fill(dataTable); 3418 return dataTable; 3419 } 3420 3421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3422 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3423 public virtual int Update(dsHiveServer.PermissionOwnerDataTable dataTable) { 3424 return this.Adapter.Update(dataTable); 3425 } 3426 3427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3428 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3429 public virtual int Update(dsHiveServer dataSet) { 3430 return this.Adapter.Update(dataSet, "PermissionOwner"); 3431 } 3432 3433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3434 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3435 public virtual int Update(global::System.Data.DataRow dataRow) { 3436 return this.Adapter.Update(new global::System.Data.DataRow[] { 3437 dataRow}); 3438 } 3439 3440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3441 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3442 public virtual int Update(global::System.Data.DataRow[] dataRows) { 3443 return this.Adapter.Update(dataRows); 3444 } 3445 3446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3447 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3448 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] 3449 public virtual int Delete(long Original_PermissionOwnerId, string Original_Name) { 3450 this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId)); 3451 if ((Original_Name == null)) { 3452 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); 3453 this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; 3454 } 3455 else { 3456 this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); 3457 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name)); 3458 } 3459 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 3460 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 3461 != global::System.Data.ConnectionState.Open)) { 3462 this.Adapter.DeleteCommand.Connection.Open(); 3463 } 3464 try { 3465 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); 3466 return returnValue; 3467 } 3468 finally { 3469 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3470 this.Adapter.DeleteCommand.Connection.Close(); 3471 } 3472 } 3473 } 3474 3475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3476 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3477 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] 3478 public virtual int Insert(string Name) { 3479 if ((Name == null)) { 3480 this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; 3481 } 3482 else { 3483 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name)); 3484 } 3485 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; 3486 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 3487 != global::System.Data.ConnectionState.Open)) { 3488 this.Adapter.InsertCommand.Connection.Open(); 3489 } 3490 try { 3491 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); 3492 return returnValue; 3493 } 3494 finally { 3495 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3496 this.Adapter.InsertCommand.Connection.Close(); 3497 } 3498 } 3499 } 3500 3501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3502 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3503 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 3504 public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name, long PermissionOwnerId) { 3505 if ((Name == null)) { 3506 this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; 3507 } 3508 else { 3509 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name)); 3510 } 3511 this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_PermissionOwnerId)); 3512 if ((Original_Name == null)) { 3513 this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1)); 3514 this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; 3515 } 3516 else { 3517 this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0)); 3518 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name)); 3519 } 3520 this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(PermissionOwnerId)); 3521 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 3522 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 3523 != global::System.Data.ConnectionState.Open)) { 3524 this.Adapter.UpdateCommand.Connection.Open(); 3525 } 3526 try { 3527 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); 3528 return returnValue; 3529 } 3530 finally { 3531 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { 3532 this.Adapter.UpdateCommand.Connection.Close(); 3533 } 3534 } 3535 } 3536 3537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3538 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 3539 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 3540 public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name) { 3541 return this.Update(Name, Original_PermissionOwnerId, Original_Name, Original_PermissionOwnerId); 3542 } 3543 } 3544 3545 /// <summary> 2121 3546 ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios 2122 3547 ///</summary> … … 2131 3556 private UpdateOrderOption _updateOrder; 2132 3557 3558 private ResourceTableAdapter _resourceTableAdapter; 3559 2133 3560 private ClientTableAdapter _clientTableAdapter; 2134 3561 2135 private ResourceTableAdapter _resourceTableAdapter; 3562 private HiveUserTableAdapter _hiveUserTableAdapter; 3563 3564 private PermissionOwnerTableAdapter _permissionOwnerTableAdapter; 2136 3565 2137 3566 private bool _backupDataSetBeforeUpdate; … … 2146 3575 set { 2147 3576 this._updateOrder = value; 3577 } 3578 } 3579 3580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3581 [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + 3582 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + 3583 "", "System.Drawing.Design.UITypeEditor")] 3584 public ResourceTableAdapter ResourceTableAdapter { 3585 get { 3586 return this._resourceTableAdapter; 3587 } 3588 set { 3589 this._resourceTableAdapter = value; 2148 3590 } 2149 3591 } … … 2166 3608 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + 2167 3609 "", "System.Drawing.Design.UITypeEditor")] 2168 public ResourceTableAdapter ResourceTableAdapter {3610 public HiveUserTableAdapter HiveUserTableAdapter { 2169 3611 get { 2170 return this._ resourceTableAdapter;3612 return this._hiveUserTableAdapter; 2171 3613 } 2172 3614 set { 2173 this._resourceTableAdapter = value; 3615 this._hiveUserTableAdapter = value; 3616 } 3617 } 3618 3619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 3620 [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + 3621 "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + 3622 "", "System.Drawing.Design.UITypeEditor")] 3623 public PermissionOwnerTableAdapter PermissionOwnerTableAdapter { 3624 get { 3625 return this._permissionOwnerTableAdapter; 3626 } 3627 set { 3628 this._permissionOwnerTableAdapter = value; 2174 3629 } 2175 3630 } … … 2192 3647 return this._connection; 2193 3648 } 3649 if (((this._resourceTableAdapter != null) 3650 && (this._resourceTableAdapter.Connection != null))) { 3651 return this._resourceTableAdapter.Connection; 3652 } 2194 3653 if (((this._clientTableAdapter != null) 2195 3654 && (this._clientTableAdapter.Connection != null))) { 2196 3655 return this._clientTableAdapter.Connection; 2197 3656 } 2198 if (((this._resourceTableAdapter != null) 2199 && (this._resourceTableAdapter.Connection != null))) { 2200 return this._resourceTableAdapter.Connection; 3657 if (((this._hiveUserTableAdapter != null) 3658 && (this._hiveUserTableAdapter.Connection != null))) { 3659 return this._hiveUserTableAdapter.Connection; 3660 } 3661 if (((this._permissionOwnerTableAdapter != null) 3662 && (this._permissionOwnerTableAdapter.Connection != null))) { 3663 return this._permissionOwnerTableAdapter.Connection; 2201 3664 } 2202 3665 return null; … … 2212 3675 get { 2213 3676 int count = 0; 3677 if ((this._resourceTableAdapter != null)) { 3678 count = (count + 1); 3679 } 2214 3680 if ((this._clientTableAdapter != null)) { 2215 3681 count = (count + 1); 2216 3682 } 2217 if ((this._resourceTableAdapter != null)) { 3683 if ((this._hiveUserTableAdapter != null)) { 3684 count = (count + 1); 3685 } 3686 if ((this._permissionOwnerTableAdapter != null)) { 2218 3687 count = (count + 1); 2219 3688 } … … 2228 3697 private int UpdateUpdatedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) { 2229 3698 int result = 0; 3699 if ((this._permissionOwnerTableAdapter != null)) { 3700 global::System.Data.DataRow[] updatedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); 3701 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); 3702 if (((updatedRows != null) 3703 && (0 < updatedRows.Length))) { 3704 result = (result + this._permissionOwnerTableAdapter.Update(updatedRows)); 3705 allChangedRows.AddRange(updatedRows); 3706 } 3707 } 2230 3708 if ((this._resourceTableAdapter != null)) { 2231 3709 global::System.Data.DataRow[] updatedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); … … 2246 3724 } 2247 3725 } 3726 if ((this._hiveUserTableAdapter != null)) { 3727 global::System.Data.DataRow[] updatedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); 3728 updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); 3729 if (((updatedRows != null) 3730 && (0 < updatedRows.Length))) { 3731 result = (result + this._hiveUserTableAdapter.Update(updatedRows)); 3732 allChangedRows.AddRange(updatedRows); 3733 } 3734 } 2248 3735 return result; 2249 3736 } … … 2255 3742 private int UpdateInsertedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) { 2256 3743 int result = 0; 3744 if ((this._permissionOwnerTableAdapter != null)) { 3745 global::System.Data.DataRow[] addedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Added); 3746 if (((addedRows != null) 3747 && (0 < addedRows.Length))) { 3748 result = (result + this._permissionOwnerTableAdapter.Update(addedRows)); 3749 allAddedRows.AddRange(addedRows); 3750 } 3751 } 2257 3752 if ((this._resourceTableAdapter != null)) { 2258 3753 global::System.Data.DataRow[] addedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.Added); … … 2271 3766 } 2272 3767 } 3768 if ((this._hiveUserTableAdapter != null)) { 3769 global::System.Data.DataRow[] addedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Added); 3770 if (((addedRows != null) 3771 && (0 < addedRows.Length))) { 3772 result = (result + this._hiveUserTableAdapter.Update(addedRows)); 3773 allAddedRows.AddRange(addedRows); 3774 } 3775 } 2273 3776 return result; 2274 3777 } … … 2280 3783 private int UpdateDeletedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) { 2281 3784 int result = 0; 3785 if ((this._hiveUserTableAdapter != null)) { 3786 global::System.Data.DataRow[] deletedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Deleted); 3787 if (((deletedRows != null) 3788 && (0 < deletedRows.Length))) { 3789 result = (result + this._hiveUserTableAdapter.Update(deletedRows)); 3790 allChangedRows.AddRange(deletedRows); 3791 } 3792 } 2282 3793 if ((this._clientTableAdapter != null)) { 2283 3794 global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted); … … 2296 3807 } 2297 3808 } 3809 if ((this._permissionOwnerTableAdapter != null)) { 3810 global::System.Data.DataRow[] deletedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Deleted); 3811 if (((deletedRows != null) 3812 && (0 < deletedRows.Length))) { 3813 result = (result + this._permissionOwnerTableAdapter.Update(deletedRows)); 3814 allChangedRows.AddRange(deletedRows); 3815 } 3816 } 2298 3817 return result; 2299 3818 } … … 2333 3852 return 0; 2334 3853 } 3854 if (((this._resourceTableAdapter != null) 3855 && (this.MatchTableAdapterConnection(this._resourceTableAdapter.Connection) == false))) { 3856 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + 3857 "tring."); 3858 } 2335 3859 if (((this._clientTableAdapter != null) 2336 3860 && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) { … … 2338 3862 "tring."); 2339 3863 } 2340 if (((this._resourceTableAdapter != null) 2341 && (this.MatchTableAdapterConnection(this._resourceTableAdapter.Connection) == false))) { 3864 if (((this._hiveUserTableAdapter != null) 3865 && (this.MatchTableAdapterConnection(this._hiveUserTableAdapter.Connection) == false))) { 3866 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + 3867 "tring."); 3868 } 3869 if (((this._permissionOwnerTableAdapter != null) 3870 && (this.MatchTableAdapterConnection(this._permissionOwnerTableAdapter.Connection) == false))) { 2342 3871 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + 2343 3872 "tring."); … … 2375 3904 // ---- Prepare for update ----------- 2376 3905 // 3906 if ((this._resourceTableAdapter != null)) { 3907 revertConnections.Add(this._resourceTableAdapter, this._resourceTableAdapter.Connection); 3908 this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); 3909 this._resourceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); 3910 if (this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate) { 3911 this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 3912 adaptersWithAcceptChangesDuringUpdate.Add(this._resourceTableAdapter.Adapter); 3913 } 3914 } 2377 3915 if ((this._clientTableAdapter != null)) { 2378 3916 revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection); … … 2384 3922 } 2385 3923 } 2386 if ((this._resourceTableAdapter != null)) { 2387 revertConnections.Add(this._resourceTableAdapter, this._resourceTableAdapter.Connection); 2388 this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); 2389 this._resourceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); 2390 if (this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate) { 2391 this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 2392 adaptersWithAcceptChangesDuringUpdate.Add(this._resourceTableAdapter.Adapter); 3924 if ((this._hiveUserTableAdapter != null)) { 3925 revertConnections.Add(this._hiveUserTableAdapter, this._hiveUserTableAdapter.Connection); 3926 this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); 3927 this._hiveUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); 3928 if (this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate) { 3929 this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 3930 adaptersWithAcceptChangesDuringUpdate.Add(this._hiveUserTableAdapter.Adapter); 3931 } 3932 } 3933 if ((this._permissionOwnerTableAdapter != null)) { 3934 revertConnections.Add(this._permissionOwnerTableAdapter, this._permissionOwnerTableAdapter.Connection); 3935 this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); 3936 this._permissionOwnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); 3937 if (this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate) { 3938 this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false; 3939 adaptersWithAcceptChangesDuringUpdate.Add(this._permissionOwnerTableAdapter.Adapter); 2393 3940 } 2394 3941 } … … 2451 3998 workConnection.Close(); 2452 3999 } 4000 if ((this._resourceTableAdapter != null)) { 4001 this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._resourceTableAdapter])); 4002 this._resourceTableAdapter.Transaction = null; 4003 } 2453 4004 if ((this._clientTableAdapter != null)) { 2454 4005 this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter])); 2455 4006 this._clientTableAdapter.Transaction = null; 2456 4007 } 2457 if ((this._resourceTableAdapter != null)) { 2458 this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._resourceTableAdapter])); 2459 this._resourceTableAdapter.Transaction = null; 4008 if ((this._hiveUserTableAdapter != null)) { 4009 this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._hiveUserTableAdapter])); 4010 this._hiveUserTableAdapter.Transaction = null; 4011 } 4012 if ((this._permissionOwnerTableAdapter != null)) { 4013 this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._permissionOwnerTableAdapter])); 4014 this._permissionOwnerTableAdapter.Transaction = null; 2460 4015 } 2461 4016 if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
Note: See TracChangeset
for help on using the changeset viewer.