public DrpLog BuildFromRow(DataRow row) { var returnRecord = DrpLog.BuildDrpLogFromRow(row); returnRecord = this.BuildExtraFromRow <DrpLog>(returnRecord, row); return(returnRecord); }
public DrpLog Insert(DrpLog record) { DataRow row = this.dataSet.ttbldrp_log.Newttbldrp_logRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbldrp_log.Addttbldrp_logRow((pdsdrp_logDataSet.ttbldrp_logRow)row); this.SaveChanges(); return(this.dataSet.ttbldrp_log.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldrp_log.Rows[0]) : null); }
public DrpLog GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); DrpLog drpLog = null; if (row != null) { drpLog = this.BuildFromRow(row); } return(drpLog); }
protected DrpLog Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbldrp_log.AsEnumerable().SingleOrDefault(); DrpLog drpLog = null; if (row != null) { drpLog = this.BuildFromRow(row); } return(drpLog); }
public void Delete(DrpLog record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldrp_log.Newttbldrp_logRow(); DrpLog.BuildMinimalRow(ref row, record); this.dataSet.ttbldrp_log.Addttbldrp_logRow((pdsdrp_logDataSet.ttbldrp_logRow)row); } row.Delete(); this.SaveChanges(); }
public DrpLog Update(DrpLog 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.ttbldrp_log.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldrp_log.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(DrpLog record) { this.adapter.Delete(record); }
public DrpLog Update(DrpLog record) { return(this.adapter.Update(record)); }
public DrpLog Insert(DrpLog record) { return(this.adapter.Insert(record)); }
public DrpLog Insert(DrpLog record) { return(this.repository.Insert(record)); }
public void Delete(DrpLog record) { this.repository.Delete(record); }
public DrpLog Update(DrpLog record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, DrpLog record) { DrpLog.UpdateRowFromDrpLog(ref row, record); this.ExtraUpdateToRow(ref row, record); }