public Pdsvcd BuildFromRow(DataRow row) { var returnRecord = Pdsvcd.BuildPdsvcdFromRow(row); returnRecord = this.BuildExtraFromRow <Pdsvcd>(returnRecord, row); return(returnRecord); }
public Pdsvcd Insert(Pdsvcd record) { DataRow row = this.dataSet.ttblpdsvcd.NewttblpdsvcdRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpdsvcd.AddttblpdsvcdRow((pdspdsvcdDataSet.ttblpdsvcdRow)row); this.SaveChanges(); return(this.dataSet.ttblpdsvcd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdsvcd.Rows[0]) : null); }
public Pdsvcd GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pdsvcd pdsvcd = null; if (row != null) { pdsvcd = this.BuildFromRow(row); } return(pdsvcd); }
protected Pdsvcd Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpdsvcd.AsEnumerable().SingleOrDefault(); Pdsvcd pdsvcd = null; if (row != null) { pdsvcd = this.BuildFromRow(row); } return(pdsvcd); }
public void Delete(Pdsvcd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpdsvcd.NewttblpdsvcdRow(); Pdsvcd.BuildMinimalRow(ref row, record); this.dataSet.ttblpdsvcd.AddttblpdsvcdRow((pdspdsvcdDataSet.ttblpdsvcdRow)row); } row.Delete(); this.SaveChanges(); }
public Pdsvcd Update(Pdsvcd 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.ttblpdsvcd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdsvcd.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Pdsvcd record) { this.adapter.Delete(record); }
public Pdsvcd Update(Pdsvcd record) { return(this.adapter.Update(record)); }
public Pdsvcd Insert(Pdsvcd record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Pdsvcd record) { Pdsvcd.UpdateRowFromPdsvcd(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pdsvcd record) { this.repository.Delete(record); }
public Pdsvcd Update(Pdsvcd record) { return(this.repository.Update(record)); }
public Pdsvcd Insert(Pdsvcd record) { return(this.repository.Insert(record)); }