Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/08 16:49:55 (15 years ago)
Author:
svonolfe
Message:

Implemented user adapter (#372)

File:
1 edited

Legend:

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

    r845 r905  
    30253025        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    30263026        private void InitCommandCollection() {
    3027             this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
     3027            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
    30283028            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
    30293029            this._commandCollection[0].Connection = this.Connection;
     
    30353035            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
    30363036            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            this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
     3038            this._commandCollection[2].Connection = this.Connection;
     3039            this._commandCollection[2].CommandText = "SELECT     HiveUser.PermissionOwnerId, HiveUser.Password\r\nFROM         HiveUser I" +
     3040                "NNER JOIN\r\n                      PermissionOwner ON HiveUser.PermissionOwnerId =" +
     3041                " PermissionOwner.PermissionOwnerId\r\nWHERE     (PermissionOwner.Name = @Name)";
     3042            this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
     3043            this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 18, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
    30373044        }
    30383045       
     
    30783085            this.Adapter.SelectCommand = this.CommandCollection[1];
    30793086            this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
     3087            dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
     3088            this.Adapter.Fill(dataTable);
     3089            return dataTable;
     3090        }
     3091       
     3092        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     3093        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
     3094        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
     3095        public virtual int FillByName(dsHiveServer.HiveUserDataTable dataTable, string Name) {
     3096            this.Adapter.SelectCommand = this.CommandCollection[2];
     3097            if ((Name == null)) {
     3098                this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     3099            }
     3100            else {
     3101                this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Name));
     3102            }
     3103            if ((this.ClearBeforeFill == true)) {
     3104                dataTable.Clear();
     3105            }
     3106            int returnValue = this.Adapter.Fill(dataTable);
     3107            return returnValue;
     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.Select, false)]
     3113        public virtual dsHiveServer.HiveUserDataTable GetDataByName(string Name) {
     3114            this.Adapter.SelectCommand = this.CommandCollection[2];
     3115            if ((Name == null)) {
     3116                this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     3117            }
     3118            else {
     3119                this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Name));
     3120            }
    30803121            dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
    30813122            this.Adapter.Fill(dataTable);
Note: See TracChangeset for help on using the changeset viewer.