public Sabs BuildFromRow(DataRow row) { var returnRecord = Sabs.BuildSabsFromRow(row); returnRecord = this.BuildExtraFromRow <Sabs>(returnRecord, row); return(returnRecord); }
public Sabs Insert(Sabs record) { DataRow row = this.dataSet.ttblsabs.NewttblsabsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsabs.AddttblsabsRow((pdssabsDataSet.ttblsabsRow)row); this.SaveChanges(); return(this.dataSet.ttblsabs.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsabs.Rows[0]) : null); }
public Sabs GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sabs sabs = null; if (row != null) { sabs = this.BuildFromRow(row); } return(sabs); }
protected Sabs Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsabs.AsEnumerable().SingleOrDefault(); Sabs sabs = null; if (row != null) { sabs = this.BuildFromRow(row); } return(sabs); }
private void DeleteUseRowID(Sabs record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsabs.NewttblsabsRow(); Sabs.BuildMinimalRow(ref row, record); this.dataSet.ttblsabs.AddttblsabsRow((pdssabsDataSet.ttblsabsRow)row); } row.Delete(); this.SaveChanges(); }
public Sabs Update(Sabs record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblsabs.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsabs.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Sabs record) { this.adapter.Delete(record); }
public Sabs Update(Sabs record) { return(this.adapter.Update(record)); }
public Sabs Insert(Sabs record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Sabs record) { Sabs.UpdateRowFromSabs(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sabs record) { this.repository.Delete(record); }
public Sabs Update(Sabs record) { return(this.repository.Update(record)); }
public Sabs Insert(Sabs record) { return(this.repository.Insert(record)); }