public Cmcsq BuildFromRow(DataRow row) { var returnRecord = Cmcsq.BuildCmcsqFromRow(row); returnRecord = this.BuildExtraFromRow <Cmcsq>(returnRecord, row); return(returnRecord); }
public Cmcsq Insert(Cmcsq record) { DataRow row = this.dataSet.ttblcmcsq.NewttblcmcsqRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmcsq.AddttblcmcsqRow((pdscmcsqDataSet.ttblcmcsqRow)row); this.SaveChanges(); return(this.dataSet.ttblcmcsq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmcsq.Rows[0]) : null); }
public Cmcsq GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmcsq cmcsq = null; if (row != null) { cmcsq = this.BuildFromRow(row); } return(cmcsq); }
protected Cmcsq Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmcsq.AsEnumerable().SingleOrDefault(); Cmcsq cmcsq = null; if (row != null) { cmcsq = this.BuildFromRow(row); } return(cmcsq); }
public void Delete(Cmcsq record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmcsq.NewttblcmcsqRow(); Cmcsq.BuildMinimalRow(ref row, record); this.dataSet.ttblcmcsq.AddttblcmcsqRow((pdscmcsqDataSet.ttblcmcsqRow)row); } row.Delete(); this.SaveChanges(); }
public Cmcsq Update(Cmcsq 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.ttblcmcsq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmcsq.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Cmcsq record) { this.adapter.Delete(record); }
public Cmcsq Update(Cmcsq record) { return(this.adapter.Update(record)); }
public Cmcsq Insert(Cmcsq record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Cmcsq record) { Cmcsq.UpdateRowFromCmcsq(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Cmcsq Update(Cmcsq record) { return(this.repository.Update(record)); }
public Cmcsq Insert(Cmcsq record) { return(this.repository.Insert(record)); }
public void Delete(Cmcsq record) { this.repository.Delete(record); }