public virtual int Fill(acl_function.acl_functionDataTable 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_function.acl_functionDataTable dataTable, string value) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((value == null)) { this.Adapter.SelectCommand.Parameters[0].Value = System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(value)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }