Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/09 15:46:43 (15 years ago)
Author:
svonolfe
Message:

Improved handling of binary relations (#527)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs

    r1508 r1515  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:2.0.50727.3082
     4//     Runtime Version:2.0.50727.3053
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    4646        private global::System.Data.DataRelation relationClientGroup_is_a_Resource;
    4747       
     48        private global::System.Data.DataRelation relationR_21;
     49       
     50        private global::System.Data.DataRelation relationR_14;
     51       
     52        private global::System.Data.DataRelation relationR_51;
     53       
     54        private global::System.Data.DataRelation relationR_54;
     55       
    4856        private global::System.Data.DataRelation relationR_52;
    49        
    50         private global::System.Data.DataRelation relationR_21;
    51        
    52         private global::System.Data.DataRelation relationR_14;
    53        
    54         private global::System.Data.DataRelation relationR_51;
    55        
    56         private global::System.Data.DataRelation relationR_54;
    5757       
    5858        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     
    359359            this.relationClient_is_a_Resource = this.Relations["Client_is_a_Resource"];
    360360            this.relationClientGroup_is_a_Resource = this.Relations["ClientGroup_is_a_Resource"];
    361             this.relationR_52 = this.Relations["R_52"];
    362361            this.relationR_21 = this.Relations["R_21"];
    363362            this.relationR_14 = this.Relations["R_14"];
    364363            this.relationR_51 = this.Relations["R_51"];
    365364            this.relationR_54 = this.Relations["R_54"];
     365            this.relationR_52 = this.Relations["R_52"];
    366366        }
    367367       
     
    397397                        this.tableClientGroup.ResourceIdColumn}, false);
    398398            this.Relations.Add(this.relationClientGroup_is_a_Resource);
    399             this.relationR_52 = new global::System.Data.DataRelation("R_52", new global::System.Data.DataColumn[] {
    400                         this.tableClientGroup.ResourceIdColumn}, new global::System.Data.DataColumn[] {
    401                         this.tableClientGroup_Resource.ClientGroupIdColumn}, false);
    402             this.Relations.Add(this.relationR_52);
    403399            this.relationR_21 = new global::System.Data.DataRelation("R_21", new global::System.Data.DataColumn[] {
    404400                        this.tableClient.ResourceIdColumn}, new global::System.Data.DataColumn[] {
     
    417413                        this.tableRequiredPlugins.PluginIdColumn}, false);
    418414            this.Relations.Add(this.relationR_54);
     415            this.relationR_52 = new global::System.Data.DataRelation("R_52", new global::System.Data.DataColumn[] {
     416                        this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] {
     417                        this.tableClientGroup_Resource.ClientGroupIdColumn}, false);
     418            this.Relations.Add(this.relationR_52);
    419419        }
    420420       
     
    14371437           
    14381438            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    1439             public ClientGroup_ResourceRow AddClientGroup_ResourceRow(ClientGroupRow parentClientGroupRowByR_52, System.Guid ResourceId) {
     1439            public ClientGroup_ResourceRow AddClientGroup_ResourceRow(ResourceRow parentResourceRowByR_52, System.Guid ResourceId) {
    14401440                ClientGroup_ResourceRow rowClientGroup_ResourceRow = ((ClientGroup_ResourceRow)(this.NewRow()));
    14411441                object[] columnValuesArray = new object[] {
    14421442                        null,
    14431443                        ResourceId};
    1444                 if ((parentClientGroupRowByR_52 != null)) {
    1445                     columnValuesArray[0] = parentClientGroupRowByR_52[0];
     1444                if ((parentResourceRowByR_52 != null)) {
     1445                    columnValuesArray[0] = parentResourceRowByR_52[0];
    14461446                }
    14471447                rowClientGroup_ResourceRow.ItemArray = columnValuesArray;
     
    31253125                }
    31263126            }
     3127           
     3128            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3129            public ClientGroup_ResourceRow[] GetClientGroup_ResourceRows() {
     3130                if ((this.Table.ChildRelations["R_52"] == null)) {
     3131                    return new ClientGroup_ResourceRow[0];
     3132                }
     3133                else {
     3134                    return ((ClientGroup_ResourceRow[])(base.GetChildRows(this.Table.ChildRelations["R_52"])));
     3135                }
     3136            }
    31273137        }
    31283138       
     
    31603170                }
    31613171            }
    3162            
    3163             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    3164             public ClientGroup_ResourceRow[] GetClientGroup_ResourceRows() {
    3165                 if ((this.Table.ChildRelations["R_52"] == null)) {
    3166                     return new ClientGroup_ResourceRow[0];
    3167                 }
    3168                 else {
    3169                     return ((ClientGroup_ResourceRow[])(base.GetChildRows(this.Table.ChildRelations["R_52"])));
    3170                 }
    3171             }
    31723172        }
    31733173       
     
    32073207           
    32083208            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    3209             public ClientGroupRow ClientGroupRow {
    3210                 get {
    3211                     return ((ClientGroupRow)(this.GetParentRow(this.Table.ParentRelations["R_52"])));
     3209            public ResourceRow ResourceRow {
     3210                get {
     3211                    return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["R_52"])));
    32123212                }
    32133213                set {
     
    83078307                }
    83088308            }
    8309             if ((this._clientGroupTableAdapter != null)) {
    8310                 global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     8309            if ((this._requiredPluginsTableAdapter != null)) {
     8310                global::System.Data.DataRow[] updatedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
    83118311                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
    83128312                if (((updatedRows != null)
    83138313                            && (0 < updatedRows.Length))) {
    8314                     result = (result + this._clientGroupTableAdapter.Update(updatedRows));
     8314                    result = (result + this._requiredPluginsTableAdapter.Update(updatedRows));
    83158315                    allChangedRows.AddRange(updatedRows);
    83168316                }
     
    83258325                }
    83268326            }
    8327             if ((this._requiredPluginsTableAdapter != null)) {
    8328                 global::System.Data.DataRow[] updatedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
     8327            if ((this._clientGroupTableAdapter != null)) {
     8328                global::System.Data.DataRow[] updatedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
    83298329                updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
    83308330                if (((updatedRows != null)
    83318331                            && (0 < updatedRows.Length))) {
    8332                     result = (result + this._requiredPluginsTableAdapter.Update(updatedRows));
     8332                    result = (result + this._clientGroupTableAdapter.Update(updatedRows));
    83338333                    allChangedRows.AddRange(updatedRows);
    83348334                }
     
    83848384                }
    83858385            }
    8386             if ((this._clientGroupTableAdapter != null)) {
    8387                 global::System.Data.DataRow[] addedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Added);
     8386            if ((this._requiredPluginsTableAdapter != null)) {
     8387                global::System.Data.DataRow[] addedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.Added);
    83888388                if (((addedRows != null)
    83898389                            && (0 < addedRows.Length))) {
    8390                     result = (result + this._clientGroupTableAdapter.Update(addedRows));
     8390                    result = (result + this._requiredPluginsTableAdapter.Update(addedRows));
    83918391                    allAddedRows.AddRange(addedRows);
    83928392                }
     
    84008400                }
    84018401            }
    8402             if ((this._requiredPluginsTableAdapter != null)) {
    8403                 global::System.Data.DataRow[] addedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.Added);
     8402            if ((this._clientGroupTableAdapter != null)) {
     8403                global::System.Data.DataRow[] addedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Added);
    84048404                if (((addedRows != null)
    84058405                            && (0 < addedRows.Length))) {
    8406                     result = (result + this._requiredPluginsTableAdapter.Update(addedRows));
     8406                    result = (result + this._clientGroupTableAdapter.Update(addedRows));
    84078407                    allAddedRows.AddRange(addedRows);
    84088408                }
     
    84338433                }
    84348434            }
    8435             if ((this._requiredPluginsTableAdapter != null)) {
    8436                 global::System.Data.DataRow[] deletedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     8435            if ((this._clientGroupTableAdapter != null)) {
     8436                global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Deleted);
    84378437                if (((deletedRows != null)
    84388438                            && (0 < deletedRows.Length))) {
    8439                     result = (result + this._requiredPluginsTableAdapter.Update(deletedRows));
     8439                    result = (result + this._clientGroupTableAdapter.Update(deletedRows));
    84408440                    allChangedRows.AddRange(deletedRows);
    84418441                }
     
    84498449                }
    84508450            }
    8451             if ((this._clientGroupTableAdapter != null)) {
    8452                 global::System.Data.DataRow[] deletedRows = dataSet.ClientGroup.Select(null, null, global::System.Data.DataViewRowState.Deleted);
     8451            if ((this._requiredPluginsTableAdapter != null)) {
     8452                global::System.Data.DataRow[] deletedRows = dataSet.RequiredPlugins.Select(null, null, global::System.Data.DataViewRowState.Deleted);
    84538453                if (((deletedRows != null)
    84548454                            && (0 < deletedRows.Length))) {
    8455                     result = (result + this._clientGroupTableAdapter.Update(deletedRows));
     8455                    result = (result + this._requiredPluginsTableAdapter.Update(deletedRows));
    84568456                    allChangedRows.AddRange(deletedRows);
    84578457                }
Note: See TracChangeset for help on using the changeset viewer.