public Icet BuildFromRow(DataRow row) { var returnRecord = Icet.BuildIcetFromRow(row); returnRecord = this.BuildExtraFromRow <Icet>(returnRecord, row); return(returnRecord); }
public Icet Insert(Icet record) { DataRow row = this.dataSet.ttblicet.NewttblicetRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicet.AddttblicetRow((pdsicetDataSet.ttblicetRow)row); this.SaveChanges(); return(this.dataSet.ttblicet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicet.Rows[0]) : null); }
public Icet GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icet icet = null; if (row != null) { icet = this.BuildFromRow(row); } return(icet); }
protected Icet Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicet.AsEnumerable().SingleOrDefault(); Icet icet = null; if (row != null) { icet = this.BuildFromRow(row); } return(icet); }
public void Delete(Icet record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicet.NewttblicetRow(); Icet.BuildMinimalRow(ref row, record); this.dataSet.ttblicet.AddttblicetRow((pdsicetDataSet.ttblicetRow)row); } row.Delete(); this.SaveChanges(); }
public Icet Update(Icet 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.ttblicet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicet.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icet record) { Icet.UpdateRowFromIcet(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icet record) { this.adapter.Delete(record); }
public Icet Update(Icet record) { return(this.adapter.Update(record)); }
public Icet Insert(Icet record) { return(this.adapter.Insert(record)); }
public void Delete(Icet record) { this.repository.Delete(record); }
public Icet Update(Icet record) { return(this.repository.Update(record)); }
public Icet Insert(Icet record) { return(this.repository.Insert(record)); }