public virtual F29530EventAssociationData.ListEventAssociationTableDataTable GetData(global::System.Nullable <int> EventID) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((EventID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(EventID.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } F29530EventAssociationData.ListEventAssociationTableDataTable dataTable = new F29530EventAssociationData.ListEventAssociationTableDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int Fill(F29530EventAssociationData.ListEventAssociationTableDataTable dataTable, global::System.Nullable <int> EventID) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((EventID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(EventID.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return(returnValue); }