public Icscr BuildFromRow(DataRow row) { var returnRecord = Icscr.BuildIcscrFromRow(row); returnRecord = this.BuildExtraFromRow <Icscr>(returnRecord, row); return(returnRecord); }
public Icscr Insert(Icscr record) { DataRow row = this.dataSet.ttblicscr.NewttblicscrRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicscr.AddttblicscrRow((pdsicscrDataSet.ttblicscrRow)row); this.SaveChanges(); return(this.dataSet.ttblicscr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicscr.Rows[0]) : null); }
public Icscr GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icscr icscr = null; if (row != null) { icscr = this.BuildFromRow(row); } return(icscr); }
protected Icscr Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicscr.AsEnumerable().SingleOrDefault(); Icscr icscr = null; if (row != null) { icscr = this.BuildFromRow(row); } return(icscr); }
public void Delete(Icscr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicscr.NewttblicscrRow(); Icscr.BuildMinimalRow(ref row, record); this.dataSet.ttblicscr.AddttblicscrRow((pdsicscrDataSet.ttblicscrRow)row); } row.Delete(); this.SaveChanges(); }
public Icscr Update(Icscr 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.ttblicscr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicscr.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icscr record) { this.adapter.Delete(record); }
public Icscr Update(Icscr record) { return(this.adapter.Update(record)); }
public Icscr Insert(Icscr record) { return(this.adapter.Insert(record)); }
public void Delete(Icscr record) { this.repository.Delete(record); }
public Icscr Update(Icscr record) { return(this.repository.Update(record)); }
public Icscr Insert(Icscr record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icscr record) { Icscr.UpdateRowFromIcscr(ref row, record); this.ExtraUpdateToRow(ref row, record); }