public override global::System.Data.DataTable Clone() { ReportsDataTable cln = ((ReportsDataTable)(base.Clone())); cln.InitVars(); return(cln); }
private void InitClass() { this.DataSetName = "ReportsDBDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/ReportsDBDataSet.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableReports = new ReportsDataTable(); base.Tables.Add(this.tableReports); }
internal void InitVars(bool initTable) { this.tableReports = ((ReportsDataTable)(base.Tables["Reports"])); if ((initTable == true)) { if ((this.tableReports != null)) { this.tableReports.InitVars(); } } }
//Get Report list /// <summary> /// Loads the reports from the database and coverts it into a Report list which it then returns /// </summary> /// <returns>List<Report></returns> public List <Report> GetReportList() { ReportsDataTable reportRows = new ReportsDataTable(); AdapterManager.ReportsTableAdapter.Fill(reportRows); List <Report> list = new List <Report>(); foreach (ReportsRow row in reportRows) { Report report = new Report(row.Status, row.ReportTime, row.Notes, FindRideById(row.RideId)); list.Add(report); } return(list); }
internal ReportsRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableReports = ((ReportsDataTable)(this.Table)); }