public Sasa BuildFromRow(DataRow row) { var returnRecord = Sasa.BuildSasaFromRow(row); returnRecord = this.BuildExtraFromRow <Sasa>(returnRecord, row); return(returnRecord); }
public Sasa Insert(Sasa record) { DataRow row = this.dataSet.ttblsasa.NewttblsasaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasa.AddttblsasaRow((pdssasaDataSet.ttblsasaRow)row); this.SaveChanges(); return(this.dataSet.ttblsasa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasa.Rows[0]) : null); }
public Sasa GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasa sasa = null; if (row != null) { sasa = this.BuildFromRow(row); } return(sasa); }
protected Sasa Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasa.AsEnumerable().SingleOrDefault(); Sasa sasa = null; if (row != null) { sasa = this.BuildFromRow(row); } return(sasa); }
public void Delete(Sasa record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasa.NewttblsasaRow(); Sasa.BuildMinimalRow(ref row, record); this.dataSet.ttblsasa.AddttblsasaRow((pdssasaDataSet.ttblsasaRow)row); } row.Delete(); this.SaveChanges(); }
public Sasa Update(Sasa 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.ttblsasa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasa.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasa record) { Sasa.UpdateRowFromSasa(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Sasa Update(Sasa record) { return(this.repository.Update(record)); }
public Sasa Insert(Sasa record) { return(this.repository.Insert(record)); }
public void Delete(Sasa record) { this.repository.Delete(record); }
public void Delete(Sasa record) { this.adapter.Delete(record); }
public Sasa Update(Sasa record) { return(this.adapter.Update(record)); }
public Sasa Insert(Sasa record) { return(this.adapter.Insert(record)); }