public Sastp BuildFromRow(DataRow row) { var returnRecord = Sastp.BuildSastpFromRow(row); returnRecord = this.BuildExtraFromRow <Sastp>(returnRecord, row); return(returnRecord); }
public Sastp Insert(Sastp record) { DataRow row = this.dataSet.ttblsastp.NewttblsastpRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsastp.AddttblsastpRow((pdssastpDataSet.ttblsastpRow)row); this.SaveChanges(); return(this.dataSet.ttblsastp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsastp.Rows[0]) : null); }
public Sastp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sastp sastp = null; if (row != null) { sastp = this.BuildFromRow(row); } return(sastp); }
protected Sastp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsastp.AsEnumerable().SingleOrDefault(); Sastp sastp = null; if (row != null) { sastp = this.BuildFromRow(row); } return(sastp); }
public void Delete(Sastp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsastp.NewttblsastpRow(); Sastp.BuildMinimalRow(ref row, record); this.dataSet.ttblsastp.AddttblsastpRow((pdssastpDataSet.ttblsastpRow)row); } row.Delete(); this.SaveChanges(); }
public Sastp Update(Sastp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblsastp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsastp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Sastp Insert(Sastp record) { return(this.repository.Insert(record)); }
public void Delete(Sastp record) { this.repository.Delete(record); }
public Sastp Update(Sastp record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Sastp record) { Sastp.UpdateRowFromSastp(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sastp record) { this.adapter.Delete(record); }
public Sastp Update(Sastp record) { return(this.adapter.Update(record)); }
public Sastp Insert(Sastp record) { return(this.adapter.Insert(record)); }