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

            return(returnValue);
        }
 public virtual DataSetGetList.W_Material_listDataTable GetData(string key) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((key == null)) {
         this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(key));
     }
     DataSetGetList.W_Material_listDataTable dataTable = new DataSetGetList.W_Material_listDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }