public Sasb BuildFromRow(DataRow row) { var returnRecord = Sasb.BuildSasbFromRow(row); returnRecord = this.BuildExtraFromRow <Sasb>(returnRecord, row); return(returnRecord); }
public Sasb Insert(Sasb record) { DataRow row = this.dataSet.ttblsasb.NewttblsasbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasb.AddttblsasbRow((pdssasbDataSet.ttblsasbRow)row); this.SaveChanges(); return(this.dataSet.ttblsasb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasb.Rows[0]) : null); }
public Sasb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasb sasb = null; if (row != null) { sasb = this.BuildFromRow(row); } return(sasb); }
protected Sasb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasb.AsEnumerable().SingleOrDefault(); Sasb sasb = null; if (row != null) { sasb = this.BuildFromRow(row); } return(sasb); }
public void Delete(Sasb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasb.NewttblsasbRow(); Sasb.BuildMinimalRow(ref row, record); this.dataSet.ttblsasb.AddttblsasbRow((pdssasbDataSet.ttblsasbRow)row); } row.Delete(); this.SaveChanges(); }
public Sasb Update(Sasb 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.ttblsasb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasb record) { Sasb.UpdateRowFromSasb(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Sasb Insert(Sasb record) { return(this.repository.Insert(record)); }
public void Delete(Sasb record) { this.repository.Delete(record); }
public Sasb Update(Sasb record) { return(this.repository.Update(record)); }
public void Delete(Sasb record) { this.adapter.Delete(record); }
public Sasb Update(Sasb record) { return(this.adapter.Update(record)); }
public Sasb Insert(Sasb record) { return(this.adapter.Insert(record)); }