public Icseps BuildFromRow(DataRow row) { var returnRecord = Icseps.BuildIcsepsFromRow(row); returnRecord = this.BuildExtraFromRow <Icseps>(returnRecord, row); return(returnRecord); }
public Icseps Insert(Icseps record) { DataRow row = this.dataSet.ttblicseps.NewttblicsepsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicseps.AddttblicsepsRow((pdsicsepsDataSet.ttblicsepsRow)row); this.SaveChanges(); return(this.dataSet.ttblicseps.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseps.Rows[0]) : null); }
public Icseps GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icseps icseps = null; if (row != null) { icseps = this.BuildFromRow(row); } return(icseps); }
protected Icseps Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicseps.AsEnumerable().SingleOrDefault(); Icseps icseps = null; if (row != null) { icseps = this.BuildFromRow(row); } return(icseps); }
public void Delete(Icseps record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicseps.NewttblicsepsRow(); Icseps.BuildMinimalRow(ref row, record); this.dataSet.ttblicseps.AddttblicsepsRow((pdsicsepsDataSet.ttblicsepsRow)row); } row.Delete(); this.SaveChanges(); }
public Icseps Update(Icseps 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.ttblicseps.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicseps.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icseps record) { Icseps.UpdateRowFromIcseps(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icseps record) { this.repository.Delete(record); }
public Icseps Update(Icseps record) { return(this.repository.Update(record)); }
public Icseps Insert(Icseps record) { return(this.repository.Insert(record)); }
public void Delete(Icseps record) { this.adapter.Delete(record); }
public Icseps Update(Icseps record) { return(this.adapter.Update(record)); }
public Icseps Insert(Icseps record) { return(this.adapter.Insert(record)); }