public Swsst BuildFromRow(DataRow row) { var returnRecord = Swsst.BuildSwsstFromRow(row); returnRecord = this.BuildExtraFromRow <Swsst>(returnRecord, row); return(returnRecord); }
public Swsst Insert(Swsst record) { DataRow row = this.dataSet.ttblswsst.NewttblswsstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsst.AddttblswsstRow((pdsswsstDataSet.ttblswsstRow)row); this.SaveChanges(); return(this.dataSet.ttblswsst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsst.Rows[0]) : null); }
public Swsst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsst swsst = null; if (row != null) { swsst = this.BuildFromRow(row); } return(swsst); }
protected Swsst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsst.AsEnumerable().SingleOrDefault(); Swsst swsst = null; if (row != null) { swsst = this.BuildFromRow(row); } return(swsst); }
public void Delete(Swsst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsst.NewttblswsstRow(); Swsst.BuildMinimalRow(ref row, record); this.dataSet.ttblswsst.AddttblswsstRow((pdsswsstDataSet.ttblswsstRow)row); } row.Delete(); this.SaveChanges(); }
public Swsst Update(Swsst 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.ttblswsst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swsst record) { this.adapter.Delete(record); }
public Swsst Update(Swsst record) { return(this.adapter.Update(record)); }
public Swsst Insert(Swsst record) { return(this.adapter.Insert(record)); }
public void Delete(Swsst record) { this.repository.Delete(record); }
public Swsst Update(Swsst record) { return(this.repository.Update(record)); }
public Swsst Insert(Swsst record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swsst record) { Swsst.UpdateRowFromSwsst(ref row, record); this.ExtraUpdateToRow(ref row, record); }