public Comdet BuildFromRow(DataRow row) { var returnRecord = Comdet.BuildComdetFromRow(row); returnRecord = this.BuildExtraFromRow <Comdet>(returnRecord, row); return(returnRecord); }
public Comdet Insert(Comdet record) { DataRow row = this.dataSet.ttblcomdet.NewttblcomdetRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcomdet.AddttblcomdetRow((pdscomdetDataSet.ttblcomdetRow)row); this.SaveChanges(); return(this.dataSet.ttblcomdet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcomdet.Rows[0]) : null); }
public Comdet GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Comdet comdet = null; if (row != null) { comdet = this.BuildFromRow(row); } return(comdet); }
protected Comdet Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcomdet.AsEnumerable().SingleOrDefault(); Comdet comdet = null; if (row != null) { comdet = this.BuildFromRow(row); } return(comdet); }
public void Delete(Comdet record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcomdet.NewttblcomdetRow(); Comdet.BuildMinimalRow(ref row, record); this.dataSet.ttblcomdet.AddttblcomdetRow((pdscomdetDataSet.ttblcomdetRow)row); } row.Delete(); this.SaveChanges(); }
public Comdet Update(Comdet 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.ttblcomdet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcomdet.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Comdet record) { this.repository.Delete(record); }
public Comdet Update(Comdet record) { return(this.repository.Update(record)); }
public Comdet Insert(Comdet record) { return(this.repository.Insert(record)); }
public void Delete(Comdet record) { this.adapter.Delete(record); }
public Comdet Update(Comdet record) { return(this.adapter.Update(record)); }
public Comdet Insert(Comdet record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Comdet record) { Comdet.UpdateRowFromComdet(ref row, record); this.ExtraUpdateToRow(ref row, record); }