public Cmcet BuildFromRow(DataRow row) { var returnRecord = Cmcet.BuildCmcetFromRow(row); returnRecord = this.BuildExtraFromRow <Cmcet>(returnRecord, row); return(returnRecord); }
public Cmcet Insert(Cmcet record) { DataRow row = this.dataSet.ttblcmcet.NewttblcmcetRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmcet.AddttblcmcetRow((pdscmcetDataSet.ttblcmcetRow)row); this.SaveChanges(); return(this.dataSet.ttblcmcet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmcet.Rows[0]) : null); }
public Cmcet GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmcet cmcet = null; if (row != null) { cmcet = this.BuildFromRow(row); } return(cmcet); }
protected Cmcet Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmcet.AsEnumerable().SingleOrDefault(); Cmcet cmcet = null; if (row != null) { cmcet = this.BuildFromRow(row); } return(cmcet); }
public void Delete(Cmcet record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmcet.NewttblcmcetRow(); Cmcet.BuildMinimalRow(ref row, record); this.dataSet.ttblcmcet.AddttblcmcetRow((pdscmcetDataSet.ttblcmcetRow)row); } row.Delete(); this.SaveChanges(); }
public Cmcet Update(Cmcet 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.ttblcmcet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmcet.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Cmcet Insert(Cmcet record) { return(this.repository.Insert(record)); }
public void Delete(Cmcet record) { this.repository.Delete(record); }
public Cmcet Update(Cmcet record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Cmcet record) { Cmcet.UpdateRowFromCmcet(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Cmcet record) { this.adapter.Delete(record); }
public Cmcet Update(Cmcet record) { return(this.adapter.Update(record)); }
public Cmcet Insert(Cmcet record) { return(this.adapter.Insert(record)); }