public Swscc BuildFromRow(DataRow row) { var returnRecord = Swscc.BuildSwsccFromRow(row); returnRecord = this.BuildExtraFromRow <Swscc>(returnRecord, row); return(returnRecord); }
public Swscc Insert(Swscc record) { DataRow row = this.dataSet.ttblswscc.NewttblswsccRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswscc.AddttblswsccRow((pdsswsccDataSet.ttblswsccRow)row); this.SaveChanges(); return(this.dataSet.ttblswscc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswscc.Rows[0]) : null); }
public Swscc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swscc swscc = null; if (row != null) { swscc = this.BuildFromRow(row); } return(swscc); }
protected Swscc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswscc.AsEnumerable().SingleOrDefault(); Swscc swscc = null; if (row != null) { swscc = this.BuildFromRow(row); } return(swscc); }
public void Delete(Swscc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswscc.NewttblswsccRow(); Swscc.BuildMinimalRow(ref row, record); this.dataSet.ttblswscc.AddttblswsccRow((pdsswsccDataSet.ttblswsccRow)row); } row.Delete(); this.SaveChanges(); }
public Swscc Update(Swscc 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.ttblswscc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswscc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Swscc record) { Swscc.UpdateRowFromSwscc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Swscc Insert(Swscc record) { return(this.repository.Insert(record)); }
public void Delete(Swscc record) { this.repository.Delete(record); }
public Swscc Update(Swscc record) { return(this.repository.Update(record)); }
public void Delete(Swscc record) { this.adapter.Delete(record); }
public Swscc Update(Swscc record) { return(this.adapter.Update(record)); }
public Swscc Insert(Swscc record) { return(this.adapter.Insert(record)); }