public virtual int Fill(acl_user.base_user_infoDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }
public virtual int FillBy(acl_user.base_user_infoDataTable dataTable, string value) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((value == null)) { throw new System.ArgumentNullException("value"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(value)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }