public Commst BuildFromRow(DataRow row) { var returnRecord = Commst.BuildCommstFromRow(row); returnRecord = this.BuildExtraFromRow <Commst>(returnRecord, row); return(returnRecord); }
public Commst Insert(Commst record) { DataRow row = this.dataSet.ttblcommst.NewttblcommstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcommst.AddttblcommstRow((pdscommstDataSet.ttblcommstRow)row); this.SaveChanges(); return(this.dataSet.ttblcommst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcommst.Rows[0]) : null); }
public Commst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Commst commst = null; if (row != null) { commst = this.BuildFromRow(row); } return(commst); }
protected Commst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcommst.AsEnumerable().SingleOrDefault(); Commst commst = null; if (row != null) { commst = this.BuildFromRow(row); } return(commst); }
public void Delete(Commst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcommst.NewttblcommstRow(); Commst.BuildMinimalRow(ref row, record); this.dataSet.ttblcommst.AddttblcommstRow((pdscommstDataSet.ttblcommstRow)row); } row.Delete(); this.SaveChanges(); }
public Commst Update(Commst 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.ttblcommst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcommst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Commst record) { this.repository.Delete(record); }
public Commst Update(Commst record) { return(this.repository.Update(record)); }
public Commst Insert(Commst record) { return(this.repository.Insert(record)); }
public void Delete(Commst record) { this.adapter.Delete(record); }
public Commst Update(Commst record) { return(this.adapter.Update(record)); }
public Commst Insert(Commst record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Commst record) { Commst.UpdateRowFromCommst(ref row, record); this.ExtraUpdateToRow(ref row, record); }