public Swsr BuildFromRow(DataRow row) { var returnRecord = Swsr.BuildSwsrFromRow(row); returnRecord = this.BuildExtraFromRow <Swsr>(returnRecord, row); return(returnRecord); }
public Swsr Insert(Swsr record) { DataRow row = this.dataSet.ttblswsr.NewttblswsrRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsr.AddttblswsrRow((pdsswsrDataSet.ttblswsrRow)row); this.SaveChanges(); return(this.dataSet.ttblswsr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsr.Rows[0]) : null); }
public Swsr GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsr swsr = null; if (row != null) { swsr = this.BuildFromRow(row); } return(swsr); }
protected Swsr Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsr.AsEnumerable().SingleOrDefault(); Swsr swsr = null; if (row != null) { swsr = this.BuildFromRow(row); } return(swsr); }
public void Delete(Swsr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsr.NewttblswsrRow(); Swsr.BuildMinimalRow(ref row, record); this.dataSet.ttblswsr.AddttblswsrRow((pdsswsrDataSet.ttblswsrRow)row); } row.Delete(); this.SaveChanges(); }
public Swsr Update(Swsr 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.ttblswsr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsr.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swsr record) { this.adapter.Delete(record); }
public Swsr Update(Swsr record) { return(this.adapter.Update(record)); }
public Swsr Insert(Swsr record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swsr record) { Swsr.UpdateRowFromSwsr(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Swsr Insert(Swsr record) { return(this.repository.Insert(record)); }
public void Delete(Swsr record) { this.repository.Delete(record); }
public Swsr Update(Swsr record) { return(this.repository.Update(record)); }