public Icseg BuildFromRow(DataRow row) { var returnRecord = Icseg.BuildIcsegFromRow(row); returnRecord = this.BuildExtraFromRow <Icseg>(returnRecord, row); return(returnRecord); }
public Icseg Insert(Icseg record) { DataRow row = this.dataSet.ttblicseg.NewttblicsegRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicseg.AddttblicsegRow((pdsicsegDataSet.ttblicsegRow)row); this.SaveChanges(); return(this.dataSet.ttblicseg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseg.Rows[0]) : null); }
public Icseg GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icseg icseg = null; if (row != null) { icseg = this.BuildFromRow(row); } return(icseg); }
protected Icseg Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicseg.AsEnumerable().SingleOrDefault(); Icseg icseg = null; if (row != null) { icseg = this.BuildFromRow(row); } return(icseg); }
public void Delete(Icseg record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicseg.NewttblicsegRow(); Icseg.BuildMinimalRow(ref row, record); this.dataSet.ttblicseg.AddttblicsegRow((pdsicsegDataSet.ttblicsegRow)row); } row.Delete(); this.SaveChanges(); }
public Icseg Update(Icseg 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.ttblicseg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseg.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icseg record) { this.adapter.Delete(record); }
public Icseg Update(Icseg record) { return(this.adapter.Update(record)); }
public Icseg Insert(Icseg record) { return(this.adapter.Insert(record)); }
public Icseg Insert(Icseg record) { return(this.repository.Insert(record)); }
public void Delete(Icseg record) { this.repository.Delete(record); }
public Icseg Update(Icseg record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Icseg record) { Icseg.UpdateRowFromIcseg(ref row, record); this.ExtraUpdateToRow(ref row, record); }