public Sasos BuildFromRow(DataRow row) { var returnRecord = Sasos.BuildSasosFromRow(row); returnRecord = this.BuildExtraFromRow <Sasos>(returnRecord, row); return(returnRecord); }
public Sasos Insert(Sasos record) { DataRow row = this.dataSet.ttblsasos.NewttblsasosRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasos.AddttblsasosRow((pdssasosDataSet.ttblsasosRow)row); this.SaveChanges(); return(this.dataSet.ttblsasos.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasos.Rows[0]) : null); }
public Sasos GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasos sasos = null; if (row != null) { sasos = this.BuildFromRow(row); } return(sasos); }
protected Sasos Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasos.AsEnumerable().SingleOrDefault(); Sasos sasos = null; if (row != null) { sasos = this.BuildFromRow(row); } return(sasos); }
public void Delete(Sasos record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasos.NewttblsasosRow(); Sasos.BuildMinimalRow(ref row, record); this.dataSet.ttblsasos.AddttblsasosRow((pdssasosDataSet.ttblsasosRow)row); } row.Delete(); this.SaveChanges(); }
public Sasos Update(Sasos 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.ttblsasos.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasos.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasos record) { Sasos.UpdateRowFromSasos(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sasos record) { this.adapter.Delete(record); }
public Sasos Update(Sasos record) { return(this.adapter.Update(record)); }
public Sasos Insert(Sasos record) { return(this.adapter.Insert(record)); }
public Sasos Insert(Sasos record) { return(this.repository.Insert(record)); }
public void Delete(Sasos record) { this.repository.Delete(record); }
public Sasos Update(Sasos record) { return(this.repository.Update(record)); }