public Icsplp BuildFromRow(DataRow row) { var returnRecord = Icsplp.BuildIcsplpFromRow(row); returnRecord = this.BuildExtraFromRow <Icsplp>(returnRecord, row); return(returnRecord); }
public Icsplp Insert(Icsplp record) { DataRow row = this.dataSet.ttblicsplp.NewttblicsplpRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsplp.AddttblicsplpRow((pdsicsplpDataSet.ttblicsplpRow)row); this.SaveChanges(); return(this.dataSet.ttblicsplp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsplp.Rows[0]) : null); }
public Icsplp GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Icsplp icsplp = null; if (row != null) { icsplp = this.BuildFromRow(row); } return(icsplp); }
protected Icsplp Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblicsplp.AsEnumerable().SingleOrDefault(); Icsplp icsplp = null; if (row != null) { icsplp = this.BuildFromRow(row); } return(icsplp); }
public void Delete(Icsplp record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblicsplp.NewttblicsplpRow(); Icsplp.BuildMinimalRow(ref row, record); this.dataSet.ttblicsplp.AddttblicsplpRow((pdsicsplpDataSet.ttblicsplpRow)row); } row.Delete(); this.SaveChanges(); }
public Icsplp Update(Icsplp record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblicsplp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsplp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icsplp record) { this.repository.Delete(record); }
public Icsplp Update(Icsplp record) { return(this.repository.Update(record)); }
public Icsplp Insert(Icsplp record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icsplp record) { Icsplp.UpdateRowFromIcsplp(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsplp record) { this.adapter.Delete(record); }
public Icsplp Update(Icsplp record) { return(this.adapter.Update(record)); }
public Icsplp Insert(Icsplp record) { return(this.adapter.Insert(record)); }