public virtual int FillByUserID(dsSecurity.ApplicationRolesDataTable dataTable, int UserID) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(UserID));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int Fill(dsSecurity.ApplicationRolesDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByUserName(dsSecurity.UsersDataTable dataTable, string p1) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     if ((p1 == null)) {
         throw new global::System.ArgumentNullException("p1");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(p1));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillDenormalized(dsSecurity.UsersDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[4];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByCode(dsSecurity.RolesDataTable dataTable, string p1) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((p1 == null)) {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(p1));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }