- Timestamp:
- 12/17/08 14:46:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/dsHiveServer.Designer.cs
r1000 r1005 8441 8441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 8442 8442 private void InitCommandCollection() { 8443 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[ 1];8443 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; 8444 8444 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 8445 8445 this._commandCollection[0].Connection = this.Connection; 8446 8446 this._commandCollection[0].CommandText = "SELECT JobResultId, JobId, JobResult, ResourceId FROM dbo.JobResult"; 8447 8447 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 8448 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 8449 this._commandCollection[1].Connection = this.Connection; 8450 this._commandCollection[1].CommandText = "SELECT * FROM dbo.JobResult WHERE JobResultId = @Id"; 8451 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 8452 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, "JobResultId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 8453 this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); 8454 this._commandCollection[2].Connection = this.Connection; 8455 this._commandCollection[2].CommandText = "SELECT * FROM dbo.JobResult WHERE JobId = @JobId"; 8456 this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; 8457 this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JobId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 8448 8458 } 8449 8459 … … 8465 8475 public virtual dsHiveServer.JobResultDataTable GetData() { 8466 8476 this.Adapter.SelectCommand = this.CommandCollection[0]; 8477 dsHiveServer.JobResultDataTable dataTable = new dsHiveServer.JobResultDataTable(); 8478 this.Adapter.Fill(dataTable); 8479 return dataTable; 8480 } 8481 8482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 8483 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 8484 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 8485 public virtual int FillById(dsHiveServer.JobResultDataTable dataTable, long Id) { 8486 this.Adapter.SelectCommand = this.CommandCollection[1]; 8487 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 8488 if ((this.ClearBeforeFill == true)) { 8489 dataTable.Clear(); 8490 } 8491 int returnValue = this.Adapter.Fill(dataTable); 8492 return returnValue; 8493 } 8494 8495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 8496 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 8497 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 8498 public virtual dsHiveServer.JobResultDataTable GetDataById(long Id) { 8499 this.Adapter.SelectCommand = this.CommandCollection[1]; 8500 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id)); 8501 dsHiveServer.JobResultDataTable dataTable = new dsHiveServer.JobResultDataTable(); 8502 this.Adapter.Fill(dataTable); 8503 return dataTable; 8504 } 8505 8506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 8507 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 8508 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 8509 public virtual int FillByJob(dsHiveServer.JobResultDataTable dataTable, global::System.Nullable<long> JobId) { 8510 this.Adapter.SelectCommand = this.CommandCollection[2]; 8511 if ((JobId.HasValue == true)) { 8512 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(JobId.Value)); 8513 } 8514 else { 8515 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 8516 } 8517 if ((this.ClearBeforeFill == true)) { 8518 dataTable.Clear(); 8519 } 8520 int returnValue = this.Adapter.Fill(dataTable); 8521 return returnValue; 8522 } 8523 8524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 8525 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 8526 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 8527 public virtual dsHiveServer.JobResultDataTable GetDataByJob(global::System.Nullable<long> JobId) { 8528 this.Adapter.SelectCommand = this.CommandCollection[2]; 8529 if ((JobId.HasValue == true)) { 8530 this.Adapter.SelectCommand.Parameters[0].Value = ((long)(JobId.Value)); 8531 } 8532 else { 8533 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 8534 } 8467 8535 dsHiveServer.JobResultDataTable dataTable = new dsHiveServer.JobResultDataTable(); 8468 8536 this.Adapter.Fill(dataTable);
Note: See TracChangeset
for help on using the changeset viewer.