public Icspl BuildFromRow(DataRow row) { var returnRecord = Icspl.BuildIcsplFromRow(row); returnRecord = this.BuildExtraFromRow <Icspl>(returnRecord, row); return(returnRecord); }
public Icspl Insert(Icspl record) { DataRow row = this.dataSet.ttblicspl.NewttblicsplRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicspl.AddttblicsplRow((pdsicsplDataSet.ttblicsplRow)row); this.SaveChanges(); return(this.dataSet.ttblicspl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicspl.Rows[0]) : null); }
public Icspl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icspl icspl = null; if (row != null) { icspl = this.BuildFromRow(row); } return(icspl); }
protected Icspl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicspl.AsEnumerable().SingleOrDefault(); Icspl icspl = null; if (row != null) { icspl = this.BuildFromRow(row); } return(icspl); }
public void Delete(Icspl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicspl.NewttblicsplRow(); Icspl.BuildMinimalRow(ref row, record); this.dataSet.ttblicspl.AddttblicsplRow((pdsicsplDataSet.ttblicsplRow)row); } row.Delete(); this.SaveChanges(); }
public Icspl Update(Icspl 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.ttblicspl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicspl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icspl record) { Icspl.UpdateRowFromIcspl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icspl record) { this.repository.Delete(record); }
public Icspl Update(Icspl record) { return(this.repository.Update(record)); }
public Icspl Insert(Icspl record) { return(this.repository.Insert(record)); }
public void Delete(Icspl record) { this.adapter.Delete(record); }
public Icspl Update(Icspl record) { return(this.adapter.Update(record)); }
public Icspl Insert(Icspl record) { return(this.adapter.Insert(record)); }