public Icetf BuildFromRow(DataRow row) { var returnRecord = Icetf.BuildIcetfFromRow(row); returnRecord = this.BuildExtraFromRow <Icetf>(returnRecord, row); return(returnRecord); }
public Icetf Insert(Icetf record) { DataRow row = this.dataSet.ttblicetf.NewttblicetfRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicetf.AddttblicetfRow((pdsicetfDataSet.ttblicetfRow)row); this.SaveChanges(); return(this.dataSet.ttblicetf.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicetf.Rows[0]) : null); }
public Icetf GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icetf icetf = null; if (row != null) { icetf = this.BuildFromRow(row); } return(icetf); }
protected Icetf Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicetf.AsEnumerable().SingleOrDefault(); Icetf icetf = null; if (row != null) { icetf = this.BuildFromRow(row); } return(icetf); }
public void Delete(Icetf record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicetf.NewttblicetfRow(); Icetf.BuildMinimalRow(ref row, record); this.dataSet.ttblicetf.AddttblicetfRow((pdsicetfDataSet.ttblicetfRow)row); } row.Delete(); this.SaveChanges(); }
public Icetf Update(Icetf 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.ttblicetf.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicetf.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icetf record) { this.adapter.Delete(record); }
public Icetf Update(Icetf record) { return(this.adapter.Update(record)); }
public Icetf Insert(Icetf record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icetf record) { Icetf.UpdateRowFromIcetf(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icetf record) { this.repository.Delete(record); }
public Icetf Update(Icetf record) { return(this.repository.Update(record)); }
public Icetf Insert(Icetf record) { return(this.repository.Insert(record)); }