public Depmst BuildFromRow(DataRow row) { var returnRecord = Depmst.BuildDepmstFromRow(row); returnRecord = this.BuildExtraFromRow <Depmst>(returnRecord, row); return(returnRecord); }
public Depmst Insert(Depmst record) { DataRow row = this.dataSet.ttbldepmst.NewttbldepmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbldepmst.AddttbldepmstRow((pdsdepmstDataSet.ttbldepmstRow)row); this.SaveChanges(); return(this.dataSet.ttbldepmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldepmst.Rows[0]) : null); }
public Depmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Depmst depmst = null; if (row != null) { depmst = this.BuildFromRow(row); } return(depmst); }
protected Depmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbldepmst.AsEnumerable().SingleOrDefault(); Depmst depmst = null; if (row != null) { depmst = this.BuildFromRow(row); } return(depmst); }
public void Delete(Depmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldepmst.NewttbldepmstRow(); Depmst.BuildMinimalRow(ref row, record); this.dataSet.ttbldepmst.AddttbldepmstRow((pdsdepmstDataSet.ttbldepmstRow)row); } row.Delete(); this.SaveChanges(); }
public Depmst Update(Depmst 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.ttbldepmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldepmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Depmst record) { this.adapter.Delete(record); }
public Depmst Update(Depmst record) { return(this.adapter.Update(record)); }
public Depmst Insert(Depmst record) { return(this.adapter.Insert(record)); }
public Depmst Update(Depmst record) { return(this.repository.Update(record)); }
public Depmst Insert(Depmst record) { return(this.repository.Insert(record)); }
public void Delete(Depmst record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Depmst record) { Depmst.UpdateRowFromDepmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }