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

            return(returnValue);
        }