Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/07/08 18:03:51 (16 years ago)
Author:
svonolfe
Message:

Added caching, thread safety to DataAccess layer (#372)

File:
1 edited

Legend:

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

    r905 r925  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:2.0.50727.3053
     4//     Runtime Version:2.0.50727.1433
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    36283628            }
    36293629            set {
     3630                if (((this._resourceTableAdapter != null)
     3631                            && (this.TableAdapterInstanceCount == 1))) {
     3632                    this._resourceTableAdapter = value;
     3633                    return;
     3634                }
     3635                if (((value != null)
     3636                            && (this.MatchTableAdapterConnection(value.Connection) == false))) {
     3637                    throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
     3638                            "tring.");
     3639                }
    36303640                this._resourceTableAdapter = value;
    36313641            }
     
    36413651            }
    36423652            set {
     3653                if (((this._clientTableAdapter != null)
     3654                            && (this.TableAdapterInstanceCount == 1))) {
     3655                    this._clientTableAdapter = value;
     3656                    return;
     3657                }
     3658                if (((value != null)
     3659                            && (this.MatchTableAdapterConnection(value.Connection) == false))) {
     3660                    throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
     3661                            "tring.");
     3662                }
    36433663                this._clientTableAdapter = value;
    36443664            }
     
    36543674            }
    36553675            set {
     3676                if (((this._hiveUserTableAdapter != null)
     3677                            && (this.TableAdapterInstanceCount == 1))) {
     3678                    this._hiveUserTableAdapter = value;
     3679                    return;
     3680                }
     3681                if (((value != null)
     3682                            && (this.MatchTableAdapterConnection(value.Connection) == false))) {
     3683                    throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
     3684                            "tring.");
     3685                }
    36563686                this._hiveUserTableAdapter = value;
    36573687            }
     
    36673697            }
    36683698            set {
     3699                if (((this._permissionOwnerTableAdapter != null)
     3700                            && (this.TableAdapterInstanceCount == 1))) {
     3701                    this._permissionOwnerTableAdapter = value;
     3702                    return;
     3703                }
     3704                if (((value != null)
     3705                            && (this.MatchTableAdapterConnection(value.Connection) == false))) {
     3706                    throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
     3707                            "tring.");
     3708                }
    36693709                this._permissionOwnerTableAdapter = value;
    36703710            }
     
    38933933                return 0;
    38943934            }
    3895             if (((this._resourceTableAdapter != null)
    3896                         && (this.MatchTableAdapterConnection(this._resourceTableAdapter.Connection) == false))) {
    3897                 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
    3898                         "tring.");
    3899             }
    3900             if (((this._clientTableAdapter != null)
    3901                         && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
    3902                 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
    3903                         "tring.");
    3904             }
    3905             if (((this._hiveUserTableAdapter != null)
    3906                         && (this.MatchTableAdapterConnection(this._hiveUserTableAdapter.Connection) == false))) {
    3907                 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
    3908                         "tring.");
    3909             }
    3910             if (((this._permissionOwnerTableAdapter != null)
    3911                         && (this.MatchTableAdapterConnection(this._permissionOwnerTableAdapter.Connection) == false))) {
    3912                 throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
    3913                         "tring.");
    3914             }
    39153935            global::System.Data.IDbConnection workConnection = this.Connection;
    39163936            if ((workConnection == null)) {
     
    39193939            }
    39203940            bool workConnOpened = false;
    3921             if (((workConnection.State & global::System.Data.ConnectionState.Broken)
    3922                         == global::System.Data.ConnectionState.Broken)) {
    3923                 workConnection.Close();
    3924             }
    3925             if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
     3941            if (((workConnection.State & global::System.Data.ConnectionState.Closed)
     3942                        == global::System.Data.ConnectionState.Closed)) {
    39263943                workConnection.Open();
    39273944                workConnOpened = true;
Note: See TracChangeset for help on using the changeset viewer.