public Sasz BuildFromRow(DataRow row) { var returnRecord = Sasz.BuildSaszFromRow(row); returnRecord = this.BuildExtraFromRow <Sasz>(returnRecord, row); return(returnRecord); }
public Sasz Insert(Sasz record) { DataRow row = this.dataSet.ttblsasz.NewttblsaszRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasz.AddttblsaszRow((pdssaszDataSet.ttblsaszRow)row); this.SaveChanges(); return(this.dataSet.ttblsasz.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasz.Rows[0]) : null); }
public Sasz GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasz sasz = null; if (row != null) { sasz = this.BuildFromRow(row); } return(sasz); }
protected Sasz Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasz.AsEnumerable().SingleOrDefault(); Sasz sasz = null; if (row != null) { sasz = this.BuildFromRow(row); } return(sasz); }
public void Delete(Sasz record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasz.NewttblsaszRow(); Sasz.BuildMinimalRow(ref row, record); this.dataSet.ttblsasz.AddttblsaszRow((pdssaszDataSet.ttblsaszRow)row); } row.Delete(); this.SaveChanges(); }
public Sasz Update(Sasz 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.ttblsasz.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasz.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasz record) { Sasz.UpdateRowFromSasz(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sasz record) { this.adapter.Delete(record); }
public Sasz Update(Sasz record) { return(this.adapter.Update(record)); }
public Sasz Insert(Sasz record) { return(this.adapter.Insert(record)); }
public Sasz Insert(Sasz record) { return(this.repository.Insert(record)); }
public void Delete(Sasz record) { this.repository.Delete(record); }
public Sasz Update(Sasz record) { return(this.repository.Update(record)); }