public Saspg BuildFromRow(DataRow row) { var returnRecord = Saspg.BuildSaspgFromRow(row); returnRecord = this.BuildExtraFromRow <Saspg>(returnRecord, row); return(returnRecord); }
public Saspg Insert(Saspg record) { DataRow row = this.dataSet.ttblsaspg.NewttblsaspgRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsaspg.AddttblsaspgRow((pdssaspgDataSet.ttblsaspgRow)row); this.SaveChanges(); return(this.dataSet.ttblsaspg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsaspg.Rows[0]) : null); }
public Saspg GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Saspg saspg = null; if (row != null) { saspg = this.BuildFromRow(row); } return(saspg); }
protected Saspg Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsaspg.AsEnumerable().SingleOrDefault(); Saspg saspg = null; if (row != null) { saspg = this.BuildFromRow(row); } return(saspg); }
public void Delete(Saspg record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsaspg.NewttblsaspgRow(); Saspg.BuildMinimalRow(ref row, record); this.dataSet.ttblsaspg.AddttblsaspgRow((pdssaspgDataSet.ttblsaspgRow)row); } row.Delete(); this.SaveChanges(); }
public Saspg Update(Saspg 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.ttblsaspg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsaspg.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Saspg Update(Saspg record) { return(this.repository.Update(record)); }
public Saspg Insert(Saspg record) { return(this.repository.Insert(record)); }
public void Delete(Saspg record) { this.repository.Delete(record); }
public void Delete(Saspg record) { this.adapter.Delete(record); }
public Saspg Update(Saspg record) { return(this.adapter.Update(record)); }
public Saspg Insert(Saspg record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Saspg record) { Saspg.UpdateRowFromSaspg(ref row, record); this.ExtraUpdateToRow(ref row, record); }