Changeset 2001 for trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/dsHiveServer.Designer.cs
- Timestamp:
- 06/04/09 15:35:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/dsHiveServer.Designer.cs
r1999 r2001 7516 7516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 7517 7517 private void InitCommandCollection() { 7518 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1 1];7518 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10]; 7519 7519 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 7520 7520 this._commandCollection[0].Connection = this.Connection; … … 7533 7533 this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); 7534 7534 this._commandCollection[2].Connection = this.Connection; 7535 this._commandCollection[2].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7536 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7537 "ROM Job WHERE (JobState = \'calculating\') OR (JobState = \'idle\')"; 7535 this._commandCollection[2].CommandText = @"SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, ParentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId FROM Job WHERE ((JobState = 'calculating') OR (JobState = 'abort') OR (JobState = 'requestSnapshot ') OR (JobState = 'requestSnapshotSent')) AND (ResourceId = @ResourceId)"; 7538 7536 this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; 7537 this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7539 7538 this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); 7540 7539 this._commandCollection[3].Connection = this.Connection; 7541 this._commandCollection[3].CommandText = @"SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, ParentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId FROM Job WHERE ((JobState = 'calculating') OR (JobState = 'abort') OR (JobState = 'requestSnapshot ')) AND (ResourceId = @ResourceId)"; 7540 this._commandCollection[3].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7541 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7542 "ROM Job WHERE (ResourceId = @ResourceId)"; 7542 7543 this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; 7543 7544 this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); … … 7546 7547 this._commandCollection[4].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7547 7548 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7548 "ROM Job WHERE ( ResourceId = @ResourceId)";7549 "ROM Job WHERE (JobId = @Id)"; 7549 7550 this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; 7550 this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ ResourceId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7551 this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7551 7552 this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); 7552 7553 this._commandCollection[5].Connection = this.Connection; … … 7560 7561 this._commandCollection[6].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7561 7562 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7562 "ROM Job WHERE ( JobId = @Id)";7563 "ROM Job WHERE (ParentJobId = @Id)"; 7563 7564 this._commandCollection[6].CommandType = global::System.Data.CommandType.Text; 7564 this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, " JobId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7565 this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ParentJobId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7565 7566 this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); 7566 7567 this._commandCollection[7].Connection = this.Connection; 7567 this._commandCollection[7].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7568 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7569 "ROM Job WHERE (ParentJobId = @Id)"; 7568 this._commandCollection[7].CommandText = "SELECT * FROM dbo.Job WHERE ProjectId = @ProjectId"; 7570 7569 this._commandCollection[7].CommandType = global::System.Data.CommandType.Text; 7571 this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ Id", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ParentJobId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7570 this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProjectId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7572 7571 this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); 7573 7572 this._commandCollection[8].Connection = this.Connection; 7574 this._commandCollection[8].CommandText = "SELECT * FROM dbo.Job WHERE ProjectId = @ProjectId"; 7573 this._commandCollection[8].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7574 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7575 "ROM Job WHERE (JobState = @State)"; 7575 7576 this._commandCollection[8].CommandType = global::System.Data.CommandType.Text; 7576 this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ ProjectId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "ProjectId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));7577 this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@State", global::System.Data.SqlDbType.VarChar, 18, global::System.Data.ParameterDirection.Input, 0, 0, "JobState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7577 7578 this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); 7578 7579 this._commandCollection[9].Connection = this.Connection; 7579 7580 this._commandCollection[9].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7580 7581 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7581 "ROM Job WHERE ( JobState = @State)";7582 "ROM Job WHERE (UserId = @UserId)"; 7582 7583 this._commandCollection[9].CommandType = global::System.Data.CommandType.Text; 7583 this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@State", global::System.Data.SqlDbType.VarChar, 18, global::System.Data.ParameterDirection.Input, 0, 0, "JobState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7584 this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); 7585 this._commandCollection[10].Connection = this.Connection; 7586 this._commandCollection[10].CommandText = "SELECT CoresNeeded, DateCalculated, DateCreated, JobId, JobState, MemoryNeeded, P" + 7587 "arentJobId, Percentage, Priority, ProjectId, ResourceId, SerializedJob, UserId F" + 7588 "ROM Job WHERE (UserId = @UserId)"; 7589 this._commandCollection[10].CommandType = global::System.Data.CommandType.Text; 7590 this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "UserId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7584 this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserId", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "UserId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 7591 7585 } 7592 7586 … … 7674 7668 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7675 7669 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7676 public virtual int FillBy Active(dsHiveServer.JobDataTable dataTable) {7670 public virtual int FillByCalculatingClient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ResourceId) { 7677 7671 this.Adapter.SelectCommand = this.CommandCollection[2]; 7672 if ((ResourceId.HasValue == true)) { 7673 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ResourceId.Value)); 7674 } 7675 else { 7676 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7677 } 7678 7678 if ((this.ClearBeforeFill == true)) { 7679 7679 dataTable.Clear(); … … 7686 7686 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7687 7687 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7688 public virtual dsHiveServer.JobDataTable GetDataBy Active() {7688 public virtual dsHiveServer.JobDataTable GetDataByCalculatingClient(global::System.Nullable<global::System.Guid> ResourceId) { 7689 7689 this.Adapter.SelectCommand = this.CommandCollection[2]; 7690 if ((ResourceId.HasValue == true)) { 7691 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ResourceId.Value)); 7692 } 7693 else { 7694 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7695 } 7690 7696 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); 7691 7697 this.Adapter.Fill(dataTable); … … 7696 7702 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7697 7703 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7698 public virtual int FillByC alculatingClient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ResourceId) {7704 public virtual int FillByClient(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ResourceId) { 7699 7705 this.Adapter.SelectCommand = this.CommandCollection[3]; 7700 7706 if ((ResourceId.HasValue == true)) { … … 7714 7720 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7715 7721 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7716 public virtual dsHiveServer.JobDataTable GetDataByC alculatingClient(global::System.Nullable<global::System.Guid> ResourceId) {7722 public virtual dsHiveServer.JobDataTable GetDataByClient(global::System.Nullable<global::System.Guid> ResourceId) { 7717 7723 this.Adapter.SelectCommand = this.CommandCollection[3]; 7718 7724 if ((ResourceId.HasValue == true)) { … … 7730 7736 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7731 7737 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7732 public virtual int FillBy Client(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ResourceId) {7738 public virtual int FillById(dsHiveServer.JobDataTable dataTable, System.Guid Id) { 7733 7739 this.Adapter.SelectCommand = this.CommandCollection[4]; 7734 if ((ResourceId.HasValue == true)) { 7735 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ResourceId.Value)); 7736 } 7737 else { 7738 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7739 } 7740 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); 7740 7741 if ((this.ClearBeforeFill == true)) { 7741 7742 dataTable.Clear(); … … 7748 7749 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7749 7750 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7750 public virtual dsHiveServer.JobDataTable GetDataBy Client(global::System.Nullable<global::System.Guid> ResourceId) {7751 public virtual dsHiveServer.JobDataTable GetDataById(System.Guid Id) { 7751 7752 this.Adapter.SelectCommand = this.CommandCollection[4]; 7752 if ((ResourceId.HasValue == true)) { 7753 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ResourceId.Value)); 7754 } 7755 else { 7756 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7757 } 7753 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); 7758 7754 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); 7759 7755 this.Adapter.Fill(dataTable); … … 7764 7760 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7765 7761 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7766 public virtual int FillBy Id(dsHiveServer.JobDataTable dataTable, System.Guid Id) {7762 public virtual int FillByJob(dsHiveServer.JobDataTable dataTable, System.Guid Id) { 7767 7763 this.Adapter.SelectCommand = this.CommandCollection[5]; 7768 7764 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); … … 7777 7773 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7778 7774 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7779 public virtual dsHiveServer.JobDataTable GetDataBy Id(System.Guid Id) {7775 public virtual dsHiveServer.JobDataTable GetDataByJob(System.Guid Id) { 7780 7776 this.Adapter.SelectCommand = this.CommandCollection[5]; 7781 7777 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); … … 7788 7784 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7789 7785 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7790 public virtual int FillBy Job(dsHiveServer.JobDataTable dataTable, System.GuidId) {7786 public virtual int FillByParentJob(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> Id) { 7791 7787 this.Adapter.SelectCommand = this.CommandCollection[6]; 7792 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); 7788 if ((Id.HasValue == true)) { 7789 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id.Value)); 7790 } 7791 else { 7792 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7793 } 7793 7794 if ((this.ClearBeforeFill == true)) { 7794 7795 dataTable.Clear(); … … 7801 7802 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7802 7803 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7803 public virtual dsHiveServer.JobDataTable GetDataBy Job(System.GuidId) {7804 public virtual dsHiveServer.JobDataTable GetDataByParentJob(global::System.Nullable<global::System.Guid> Id) { 7804 7805 this.Adapter.SelectCommand = this.CommandCollection[6]; 7805 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id)); 7806 if ((Id.HasValue == true)) { 7807 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(Id.Value)); 7808 } 7809 else { 7810 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7811 } 7806 7812 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); 7807 7813 this.Adapter.Fill(dataTable); … … 7812 7818 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7813 7819 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7814 public virtual int FillByP arentJob(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid>Id) {7820 public virtual int FillByProjectId(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ProjectId) { 7815 7821 this.Adapter.SelectCommand = this.CommandCollection[7]; 7816 if (( Id.HasValue == true)) {7817 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)( Id.Value));7822 if ((ProjectId.HasValue == true)) { 7823 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ProjectId.Value)); 7818 7824 } 7819 7825 else { … … 7830 7836 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7831 7837 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7832 public virtual dsHiveServer.JobDataTable GetDataByP arentJob(global::System.Nullable<global::System.Guid>Id) {7838 public virtual dsHiveServer.JobDataTable GetDataByProjectId(global::System.Nullable<global::System.Guid> ProjectId) { 7833 7839 this.Adapter.SelectCommand = this.CommandCollection[7]; 7834 if (( Id.HasValue == true)) {7835 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)( Id.Value));7840 if ((ProjectId.HasValue == true)) { 7841 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ProjectId.Value)); 7836 7842 } 7837 7843 else { … … 7846 7852 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7847 7853 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7848 public virtual int FillBy ProjectId(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> ProjectId) {7854 public virtual int FillByState(dsHiveServer.JobDataTable dataTable, string State) { 7849 7855 this.Adapter.SelectCommand = this.CommandCollection[8]; 7850 if ((ProjectId.HasValue == true)) { 7851 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ProjectId.Value)); 7852 } 7853 else { 7856 if ((State == null)) { 7854 7857 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7858 } 7859 else { 7860 this.Adapter.SelectCommand.Parameters[0].Value = ((string)(State)); 7855 7861 } 7856 7862 if ((this.ClearBeforeFill == true)) { … … 7864 7870 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7865 7871 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7866 public virtual dsHiveServer.JobDataTable GetDataBy ProjectId(global::System.Nullable<global::System.Guid> ProjectId) {7872 public virtual dsHiveServer.JobDataTable GetDataByState(string State) { 7867 7873 this.Adapter.SelectCommand = this.CommandCollection[8]; 7868 if ((ProjectId.HasValue == true)) { 7869 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ProjectId.Value)); 7870 } 7871 else { 7874 if ((State == null)) { 7872 7875 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7876 } 7877 else { 7878 this.Adapter.SelectCommand.Parameters[0].Value = ((string)(State)); 7873 7879 } 7874 7880 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable(); … … 7880 7886 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7881 7887 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] 7882 public virtual int FillBy State(dsHiveServer.JobDataTable dataTable, string State) {7888 public virtual int FillByUser(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> UserId) { 7883 7889 this.Adapter.SelectCommand = this.CommandCollection[9]; 7884 if ((State == null)) { 7890 if ((UserId.HasValue == true)) { 7891 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(UserId.Value)); 7892 } 7893 else { 7885 7894 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; 7886 }7887 else {7888 this.Adapter.SelectCommand.Parameters[0].Value = ((string)(State));7889 7895 } 7890 7896 if ((this.ClearBeforeFill == true)) { … … 7898 7904 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 7899 7905 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] 7900 public virtual dsHiveServer.JobDataTable GetDataBy State(string State) {7906 public virtual dsHiveServer.JobDataTable GetDataByUser(global::System.Nullable<global::System.Guid> UserId) { 7901 7907 this.Adapter.SelectCommand = this.CommandCollection[9]; 7902 if ((State == null)) {7903 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;7904 }7905 else {7906 this.Adapter.SelectCommand.Parameters[0].Value = ((string)(State));7907 }7908 dsHiveServer.JobDataTable dataTable = new dsHiveServer.JobDataTable();7909 this.Adapter.Fill(dataTable);7910 return dataTable;7911 }7912 7913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]7914 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]7915 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]7916 public virtual int FillByUser(dsHiveServer.JobDataTable dataTable, global::System.Nullable<global::System.Guid> UserId) {7917 this.Adapter.SelectCommand = this.CommandCollection[10];7918 if ((UserId.HasValue == true)) {7919 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(UserId.Value));7920 }7921 else {7922 this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;7923 }7924 if ((this.ClearBeforeFill == true)) {7925 dataTable.Clear();7926 }7927 int returnValue = this.Adapter.Fill(dataTable);7928 return returnValue;7929 }7930 7931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]7932 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]7933 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]7934 public virtual dsHiveServer.JobDataTable GetDataByUser(global::System.Nullable<global::System.Guid> UserId) {7935 this.Adapter.SelectCommand = this.CommandCollection[10];7936 7908 if ((UserId.HasValue == true)) { 7937 7909 this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(UserId.Value));
Note: See TracChangeset
for help on using the changeset viewer.