public virtual View_Main_ReportsDataSet.isp_sqlsecure_getguestenabledserversDataTable GetData(string connectionname) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((connectionname == null)) { this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(connectionname)); } View_Main_ReportsDataSet.isp_sqlsecure_getguestenabledserversDataTable dataTable = new View_Main_ReportsDataSet.isp_sqlsecure_getguestenabledserversDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int Fill(View_Main_ReportsDataSet.isp_sqlsecure_getguestenabledserversDataTable dataTable, string connectionname) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((connectionname == null)) { this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(connectionname)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }