public Icetl BuildFromRow(DataRow row) { var returnRecord = Icetl.BuildIcetlFromRow(row); returnRecord = this.BuildExtraFromRow <Icetl>(returnRecord, row); return(returnRecord); }
public Icetl Insert(Icetl record) { DataRow row = this.dataSet.ttblicetl.NewttblicetlRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicetl.AddttblicetlRow((pdsicetlDataSet.ttblicetlRow)row); this.SaveChanges(); return(this.dataSet.ttblicetl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicetl.Rows[0]) : null); }
public Icetl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icetl icetl = null; if (row != null) { icetl = this.BuildFromRow(row); } return(icetl); }
protected Icetl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicetl.AsEnumerable().SingleOrDefault(); Icetl icetl = null; if (row != null) { icetl = this.BuildFromRow(row); } return(icetl); }
public void Delete(Icetl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicetl.NewttblicetlRow(); Icetl.BuildMinimalRow(ref row, record); this.dataSet.ttblicetl.AddttblicetlRow((pdsicetlDataSet.ttblicetlRow)row); } row.Delete(); this.SaveChanges(); }
public Icetl Update(Icetl 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.ttblicetl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicetl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icetl record) { Icetl.UpdateRowFromIcetl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icetl record) { this.adapter.Delete(record); }
public Icetl Update(Icetl record) { return(this.adapter.Update(record)); }
public Icetl Insert(Icetl record) { return(this.adapter.Insert(record)); }
public void Delete(Icetl record) { this.repository.Delete(record); }
public Icetl Update(Icetl record) { return(this.repository.Update(record)); }
public Icetl Insert(Icetl record) { return(this.repository.Insert(record)); }