public PvAttachments BuildFromRow(DataRow row) { var returnRecord = PvAttachments.BuildPvAttachmentsFromRow(row); returnRecord = this.BuildExtraFromRow <PvAttachments>(returnRecord, row); return(returnRecord); }
public PvAttachments Insert(PvAttachments record) { DataRow row = this.dataSet.ttblpv_attachments.Newttblpv_attachmentsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_attachments.Addttblpv_attachmentsRow((pdspv_attachmentsDataSet.ttblpv_attachmentsRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_attachments.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_attachments.Rows[0]) : null); }
public PvAttachments GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvAttachments pvAttachments = null; if (row != null) { pvAttachments = this.BuildFromRow(row); } return(pvAttachments); }
protected PvAttachments Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_attachments.AsEnumerable().SingleOrDefault(); PvAttachments pvAttachments = null; if (row != null) { pvAttachments = this.BuildFromRow(row); } return(pvAttachments); }
public void Delete(PvAttachments record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_attachments.Newttblpv_attachmentsRow(); PvAttachments.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_attachments.Addttblpv_attachmentsRow((pdspv_attachmentsDataSet.ttblpv_attachmentsRow)row); } row.Delete(); this.SaveChanges(); }
public PvAttachments Update(PvAttachments 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.ttblpv_attachments.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_attachments.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(PvAttachments record) { this.adapter.Delete(record); }
public PvAttachments Update(PvAttachments record) { return(this.adapter.Update(record)); }
public PvAttachments Insert(PvAttachments record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvAttachments record) { PvAttachments.UpdateRowFromPvAttachments(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public PvAttachments Update(PvAttachments record) { return(this.repository.Update(record)); }
public PvAttachments Insert(PvAttachments record) { return(this.repository.Insert(record)); }
public void Delete(PvAttachments record) { this.repository.Delete(record); }