public Icsee BuildFromRow(DataRow row) { var returnRecord = Icsee.BuildIcseeFromRow(row); returnRecord = this.BuildExtraFromRow <Icsee>(returnRecord, row); return(returnRecord); }
public Icsee Insert(Icsee record) { DataRow row = this.dataSet.ttblicsee.NewttblicseeRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsee.AddttblicseeRow((pdsicseeDataSet.ttblicseeRow)row); this.SaveChanges(); return(this.dataSet.ttblicsee.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsee.Rows[0]) : null); }
public Icsee GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsee icsee = null; if (row != null) { icsee = this.BuildFromRow(row); } return(icsee); }
protected Icsee Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsee.AsEnumerable().SingleOrDefault(); Icsee icsee = null; if (row != null) { icsee = this.BuildFromRow(row); } return(icsee); }
public void Delete(Icsee record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsee.NewttblicseeRow(); Icsee.BuildMinimalRow(ref row, record); this.dataSet.ttblicsee.AddttblicseeRow((pdsicseeDataSet.ttblicseeRow)row); } row.Delete(); this.SaveChanges(); }
public Icsee Update(Icsee 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.ttblicsee.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsee.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icsee record) { this.repository.Delete(record); }
public Icsee Update(Icsee record) { return(this.repository.Update(record)); }
public Icsee Insert(Icsee record) { return(this.repository.Insert(record)); }
public void Delete(Icsee record) { this.adapter.Delete(record); }
public Icsee Update(Icsee record) { return(this.adapter.Update(record)); }
public Icsee Insert(Icsee record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icsee record) { Icsee.UpdateRowFromIcsee(ref row, record); this.ExtraUpdateToRow(ref row, record); }