public Swsss BuildFromRow(DataRow row) { var returnRecord = Swsss.BuildSwsssFromRow(row); returnRecord = this.BuildExtraFromRow <Swsss>(returnRecord, row); return(returnRecord); }
public Swsss Insert(Swsss record) { DataRow row = this.dataSet.ttblswsss.NewttblswsssRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsss.AddttblswsssRow((pdsswsssDataSet.ttblswsssRow)row); this.SaveChanges(); return(this.dataSet.ttblswsss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsss.Rows[0]) : null); }
public Swsss GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsss swsss = null; if (row != null) { swsss = this.BuildFromRow(row); } return(swsss); }
protected Swsss Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsss.AsEnumerable().SingleOrDefault(); Swsss swsss = null; if (row != null) { swsss = this.BuildFromRow(row); } return(swsss); }
public void Delete(Swsss record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsss.NewttblswsssRow(); Swsss.BuildMinimalRow(ref row, record); this.dataSet.ttblswsss.AddttblswsssRow((pdsswsssDataSet.ttblswsssRow)row); } row.Delete(); this.SaveChanges(); }
public Swsss Update(Swsss 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.ttblswsss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsss.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swsss record) { this.adapter.Delete(record); }
public Swsss Update(Swsss record) { return(this.adapter.Update(record)); }
public Swsss Insert(Swsss record) { return(this.adapter.Insert(record)); }
public Swsss Insert(Swsss record) { return(this.repository.Insert(record)); }
public void Delete(Swsss record) { this.repository.Delete(record); }
public Swsss Update(Swsss record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Swsss record) { Swsss.UpdateRowFromSwsss(ref row, record); this.ExtraUpdateToRow(ref row, record); }